class Thron::Gateway::Base
Constants
- NO_ACTIVE_SESSION
Attributes
token_id[RW]
Public Class Methods
client_id()
click to toggle source
# File lib/thron/gateway/base.rb, line 26 def self.client_id @client_id ||= Config.thron.client_id end
service_name()
click to toggle source
# File lib/thron/gateway/base.rb, line 22 def self.service_name self.name.split('::').last.downcase end
Public Instance Methods
check_session()
click to toggle source
# File lib/thron/gateway/base.rb, line 36 def check_session fail NoActiveSessionError, NO_ACTIVE_SESSION unless token_id end
client_id()
click to toggle source
# File lib/thron/gateway/base.rb, line 32 def client_id self.class.client_id end