Module: TurbaKit::CallToAction
- Included in:
- Client
- Defined in:
- lib/turba_kit/call_to_action.rb
Instance Method Summary collapse
- #create_service_call_to_action(service_id, options = {}) ⇒ Object
- #delete_service_call_to_action(service_id, call_to_action_id, options = {}) ⇒ Object
- #update_service_call_to_action(service_id, call_to_action_id, options = {}) ⇒ Object
Instance Method Details
#create_service_call_to_action(service_id, options = {}) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/turba_kit/call_to_action.rb', line 12 def create_service_call_to_action(service_id, = {}) post_request("/services/#{service_id}/call_to_actions", { namespace: :call_to_action, params: { call_to_action: } }) end |
#delete_service_call_to_action(service_id, call_to_action_id, options = {}) ⇒ Object
21 22 23 |
# File 'lib/turba_kit/call_to_action.rb', line 21 def delete_service_call_to_action(service_id, call_to_action_id, = {}) delete_request("/services/#{service_id}/call_to_actions/#{call_to_action_id}") end |
#update_service_call_to_action(service_id, call_to_action_id, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/turba_kit/call_to_action.rb', line 3 def update_service_call_to_action(service_id, call_to_action_id, = {}) put_request("/services/#{service_id}/call_to_actions/#{call_to_action_id}", { namespace: :call_to_action, params: { call_to_action: } }) end |