Class: ShareASale::Client
- Inherits:
-
Struct
- Object
- Struct
- ShareASale::Client
- Defined in:
- lib/share_a_sale.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
11 12 13 |
# File 'lib/share_a_sale.rb', line 11 def api_secret @api_secret end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id
11 12 13 |
# File 'lib/share_a_sale.rb', line 11 def merchant_id @merchant_id end |
#token ⇒ Object
Returns the value of attribute token
11 12 13 |
# File 'lib/share_a_sale.rb', line 11 def token @token end |
Instance Method Details
#request(action, options, date = Time.now) ⇒ Object
20 21 22 |
# File 'lib/share_a_sale.rb', line 20 def request(action, , date = Time.now) Request.new(merchant_id, token, api_secret, action, , date) end |