Module: FidorApi::Client::DSL::ConfirmableActions

Defined in:
lib/fidor_api/client/dsl/confirmable_actions.rb

Instance Method Summary collapse

Instance Method Details

#confirmable_action(id, options = {}) ⇒ Object



5
6
7
# File 'lib/fidor_api/client/dsl/confirmable_actions.rb', line 5

def confirmable_action(id, options = {})
  fetch(:single, Model::ConfirmableAction, "confirmable/actions/#{id}", options)
end

#refresh_confirmable_action(id, options = {}) ⇒ Object



9
10
11
# File 'lib/fidor_api/client/dsl/confirmable_actions.rb', line 9

def refresh_confirmable_action(id, options = {})
  update(Model::ConfirmableAction, "confirmable/actions/#{id}/refresh", id, options)
end

#update_confirmable_action(id, attributes = {}) ⇒ Object



13
14
15
# File 'lib/fidor_api/client/dsl/confirmable_actions.rb', line 13

def update_confirmable_action(id, attributes = {})
  update(Model::ConfirmableAction, "confirmable/actions/#{id}", id, attributes)
end