Module: OiApi::Client::Offers

Included in:
OiApi::Client
Defined in:
lib/oi_api/client/offers.rb

Instance Method Summary collapse

Instance Method Details

#create_offer(options = {}) ⇒ Object



15
16
17
# File 'lib/oi_api/client/offers.rb', line 15

def create_offer(options = {})
  self.class.post('/offers/', options_with_basic_auth(options))
end

#offer(offer_id, options = {}) ⇒ Object



11
12
13
# File 'lib/oi_api/client/offers.rb', line 11

def offer(offer_id, options = {})
  self.class.get("/offers/#{offer_id}/", options_with_basic_auth(options))
end

#offers(options = {}) ⇒ Object



7
8
9
# File 'lib/oi_api/client/offers.rb', line 7

def offers(options = {})
  self.class.get("/offers/", options_with_basic_auth(options))
end

#update_offer(offer_id, options = {}) ⇒ Object



19
20
21
# File 'lib/oi_api/client/offers.rb', line 19

def update_offer(offer_id, options = {})
  self.class.put("/offers/#{offer_id}/", options_with_basic_auth(options))
end