Class: ShareASale::Client
- Inherits:
-
Struct
- Object
- Struct
- ShareASale::Client
- Defined in:
- lib/share_a_sale/client.rb
Instance Attribute Summary collapse
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#api_secret ⇒ Object
Returns the value of attribute api_secret
2 3 4 |
# File 'lib/share_a_sale/client.rb', line 2 def api_secret @api_secret end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id
2 3 4 |
# File 'lib/share_a_sale/client.rb', line 2 def merchant_id @merchant_id end |
#token ⇒ Object
Returns the value of attribute 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, , date = Time.now.utc) Request.new(merchant_id, token, api_secret, action, , date) end |