Class: ShareASale::Client

Inherits:
Struct
  • Object
show all
Defined in:
lib/share_a_sale.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



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

def api_secret
  @api_secret
end

#merchant_idObject

Returns the value of attribute merchant_id

Returns:

  • (Object)

    the current value of merchant_id



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

def merchant_id
  @merchant_id
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of 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, options, date = Time.now)
  Request.new(merchant_id, token, api_secret, action, options, date)
end