Class: ShareASale::Client

Inherits:
Struct
  • Object
show all
Defined in:
lib/share_a_sale/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_secretObject

Returns the value of attribute api_secret

Returns:

  • (Object)

    the current value of api_secret



2
3
4
# File 'lib/share_a_sale/client.rb', line 2

def api_secret
  @api_secret
end

#merchant_idObject

Returns the value of attribute merchant_id

Returns:

  • (Object)

    the current value of merchant_id



2
3
4
# File 'lib/share_a_sale/client.rb', line 2

def merchant_id
  @merchant_id
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



2
3
4
# File 'lib/share_a_sale/client.rb', line 2

def token
  @token
end

Instance Method Details

#request(action, options, date = Time.now.utc) ⇒ Object



12
13
14
# File 'lib/share_a_sale/client.rb', line 12

def request(action, options, date = Time.now.utc)
  Request.new(merchant_id, token, api_secret, action, options, date)
end