module OiApi::Client::Offers

Public Instance Methods

create_offer(options = {}) click to toggle source
# 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 = {}) click to toggle source
# 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 = {}) click to toggle source
# 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 = {}) click to toggle source
# 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