module SticapiController
Public Class Methods
included(base)
click to toggle source
# File lib/sticapi_client/sticapi_controller.rb, line 2 def self.included(base) base.send(:before_action, :get_token) # base.send(:after_action, :update_token) end
new()
click to toggle source
Calls superclass method
# File lib/sticapi_client/sticapi_controller.rb, line 7 def initialize super @model_class = self.class return end
Public Instance Methods
get_token()
click to toggle source
# File lib/sticapi_client/sticapi_controller.rb, line 13 def get_token Sticapi::SticapiClient.instance.get_token end