Class: SynapseClient::Merchant

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse_client/merchant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options ={})
  options = Map.new(options)

  @client_id          = options[:client_id]          || ENV["SYNAPSE_CLIENT_ID"]
  @client_secret      = options[:client_secret]      || ENV["SYNAPSE_CLIENT_SECRET"]
  @oauth_merchant_key = options[:oauth_merchant_key] || ENV["SYNAPSE_OAUTH_MERCHANT_KEY"]
  @merchant_email     = options[:merchant_email]     || ENV["SYNAPSE_MERCHANT_EMAIL"]
  @device_id          = options[:device_id]          || ENV["SYNAPSE_DEVICE_ID"]
end

Instance Attribute Details

#client_idObject

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_secretObject

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_idObject

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_emailObject

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_keyObject

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