Module: FidorApi::Client::DSL::ConfirmableActions
- Defined in:
- lib/fidor_api/client/dsl/confirmable_actions.rb
Instance Method Summary collapse
- #confirmable_action(id, options = {}) ⇒ Object
- #refresh_confirmable_action(id, options = {}) ⇒ Object
- #update_confirmable_action(id, attributes = {}) ⇒ Object
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, = {}) fetch(:single, Model::ConfirmableAction, "confirmable/actions/#{id}", ) 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, = {}) update(Model::ConfirmableAction, "confirmable/actions/#{id}/refresh", id, ) 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 |