Class: Incentivale::Api
- Inherits:
-
Object
- Object
- Incentivale::Api
- Defined in:
- lib/incentivale/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #egift ⇒ Object
-
#initialize(client) ⇒ Api
constructor
A new instance of Api.
- #products ⇒ Object
- #redemption ⇒ Object
- #tracking ⇒ Object
Constructor Details
#initialize(client) ⇒ Api
Returns a new instance of Api.
5 6 7 |
# File 'lib/incentivale/api.rb', line 5 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/incentivale/api.rb', line 3 def client @client end |
Instance Method Details
#egift ⇒ Object
21 22 23 |
# File 'lib/incentivale/api.rb', line 21 def egift Incentivale::Resources::Egift.new(client) end |
#products ⇒ Object
9 10 11 |
# File 'lib/incentivale/api.rb', line 9 def products Incentivale::Resources::Product.new(client) end |
#redemption ⇒ Object
13 14 15 |
# File 'lib/incentivale/api.rb', line 13 def redemption Incentivale::Resources::Redemption.new(client) end |
#tracking ⇒ Object
17 18 19 |
# File 'lib/incentivale/api.rb', line 17 def tracking Incentivale::Resources::Tracking.new(client) end |