Module: OiApi::Client::AutoResponders

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

Instance Method Summary collapse

Instance Method Details

#all_auto_responders(options = {}) ⇒ Object



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

def all_auto_responders(options = {})
  get '/autoresponders/', options
end

#auto_responder(offer_id, auto_responder_id, options = {}) ⇒ Object



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

def auto_responder(offer_id, auto_responder_id, options = {})
  get "/offers/#{offer_id}/autoresponders/#{auto_responder_id}/", options
end

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



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

def auto_responders(offer_id, options = {})
  get "/offers/#{offer_id}/autoresponders/", options
end

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



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

def create_auto_responder(offer_id, options = {})
  post "/offers/#{offer_id}/autoresponders/", options
end

#update_auto_responder(offer_id, auto_responder_id, options = {}) ⇒ Object



23
24
25
# File 'lib/oi_api/client/auto_responders.rb', line 23

def update_auto_responder(offer_id, auto_responder_id, options = {})
  put "/offers/#{offer_id}/autoresponders/#{auto_responder_id}/", options
end