Class: SynapseClient::Merchant
- Inherits:
-
Object
- Object
- SynapseClient::Merchant
- Defined in:
- lib/synapse_client/merchant.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#device_id ⇒ Object
Returns the value of attribute device_id.
-
#merchant_email ⇒ Object
Returns the value of attribute merchant_email.
-
#oauth_merchant_key ⇒ Object
Returns the value of attribute oauth_merchant_key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Merchant
constructor
A new instance of Merchant.
Constructor Details
#initialize(options = {}) ⇒ Merchant
Returns a new instance of Merchant.
12 13 14 15 16 17 18 19 20 |
# File 'lib/synapse_client/merchant.rb', line 12 def initialize( ={}) = Map.new() @client_id = [:client_id] || ENV["SYNAPSE_CLIENT_ID"] @client_secret = [:client_secret] || ENV["SYNAPSE_CLIENT_SECRET"] @oauth_merchant_key = [:oauth_merchant_key] || ENV["SYNAPSE_OAUTH_MERCHANT_KEY"] @merchant_email = [:merchant_email] || ENV["SYNAPSE_MERCHANT_EMAIL"] @device_id = [:device_id] || ENV["SYNAPSE_DEVICE_ID"] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
6 7 8 |
# File 'lib/synapse_client/merchant.rb', line 6 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
7 8 9 |
# File 'lib/synapse_client/merchant.rb', line 7 def client_secret @client_secret end |
#device_id ⇒ Object
Returns the value of attribute device_id.
10 11 12 |
# File 'lib/synapse_client/merchant.rb', line 10 def device_id @device_id end |
#merchant_email ⇒ Object
Returns the value of attribute merchant_email.
9 10 11 |
# File 'lib/synapse_client/merchant.rb', line 9 def merchant_email @merchant_email end |
#oauth_merchant_key ⇒ Object
Returns the value of attribute oauth_merchant_key.
8 9 10 |
# File 'lib/synapse_client/merchant.rb', line 8 def oauth_merchant_key @oauth_merchant_key end |