Class: Button::Offers
- Defined in:
- lib/button/resources/offers.rb
Overview
Constant Summary
Constants inherited from Resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#get(user) ⇒ Button::Response
Retrieve offers that are available to Publishers user.
- #path ⇒ Object
Methods inherited from Resource
#api_delete, #api_get, #api_post, #initialize, #timeout
Constructor Details
This class inherits a constructor from Button::Resource
Instance Method Details
#get(user) ⇒ Button::Response
Retrieve offers that are available to Publishers user
16 17 18 |
# File 'lib/button/resources/offers.rb', line 16 def get(user) api_post(path, user) end |
#path ⇒ Object
7 8 9 |
# File 'lib/button/resources/offers.rb', line 7 def path '/v1/offers' end |