Class: Roqua::CoreApi::Sessions::HmacAuthSession

Inherits:
AuthSession
  • Object
show all
Defined in:
lib/roqua/core_api/sessions/hmac_auth_session.rb

Instance Attribute Summary collapse

Attributes inherited from AuthSession

#core_site, #default_timeout

Instance Method Summary collapse

Methods inherited from AuthSession

#delete, #get, #patch, #post

Constructor Details

#initialize(consumer_key: ENV.fetch('CORE_CONSUMER_KEY'), consumer_secret: ENV.fetch('CORE_CONSUMER_SECRET'), **additional_arguments) ⇒ HmacAuthSession

Returns a new instance of HmacAuthSession.



9
10
11
12
13
14
15
# File 'lib/roqua/core_api/sessions/hmac_auth_session.rb', line 9

def initialize(consumer_key: ENV.fetch('CORE_CONSUMER_KEY'),
               consumer_secret: ENV.fetch('CORE_CONSUMER_SECRET'),
               **additional_arguments)
  @consumer_key = consumer_key
  @consumer_secret = consumer_secret
  super additional_arguments
end

Instance Attribute Details

#consumer_keyObject (readonly)

Returns the value of attribute consumer_key.



5
6
7
# File 'lib/roqua/core_api/sessions/hmac_auth_session.rb', line 5

def consumer_key
  @consumer_key
end

#consumer_secretObject (readonly)

Returns the value of attribute consumer_secret.



5
6
7
# File 'lib/roqua/core_api/sessions/hmac_auth_session.rb', line 5

def consumer_secret
  @consumer_secret
end