Module: OiApi::Client::Offers
- Included in:
- OiApi::Client
- Defined in:
- lib/oi_api/client/offers.rb
Instance Method Summary collapse
- #create_offer(options = {}) ⇒ Object
- #offer(offer_id, options = {}) ⇒ Object
- #offers(options = {}) ⇒ Object
- #update_offer(offer_id, options = {}) ⇒ Object
Instance Method Details
#create_offer(options = {}) ⇒ Object
15 16 17 |
# File 'lib/oi_api/client/offers.rb', line 15 def create_offer( = {}) self.class.post('/offers/', ()) end |
#offer(offer_id, options = {}) ⇒ Object
11 12 13 |
# File 'lib/oi_api/client/offers.rb', line 11 def offer(offer_id, = {}) self.class.get("/offers/#{offer_id}/", ()) end |
#offers(options = {}) ⇒ Object
7 8 9 |
# File 'lib/oi_api/client/offers.rb', line 7 def offers( = {}) self.class.get("/offers/", ()) end |
#update_offer(offer_id, options = {}) ⇒ Object
19 20 21 |
# File 'lib/oi_api/client/offers.rb', line 19 def update_offer(offer_id, = {}) self.class.put("/offers/#{offer_id}/", ()) end |