class SynapseClient::Merchant
Attributes
client_id[RW]
client_secret[RW]
device_id[RW]
merchant_email[RW]
oauth_merchant_key[RW]
Public Class Methods
new(options ={})
click to toggle source
# 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