Module: FidorApi::Client::DSL::ScheduledTransfers
- Defined in:
- lib/fidor_api/client/dsl/scheduled_transfers.rb
Instance Method Summary collapse
- #confirm_scheduled_transfer(id, options = {}) ⇒ Object
- #create_scheduled_transfer(attributes = {}, options = {}) ⇒ Object
- #delete_scheduled_transfer(id, options = {}) ⇒ Object
- #new_scheduled_transfer(attributes = {}) ⇒ Object
- #scheduled_transfer(id, options = {}) ⇒ Object
- #scheduled_transfers(options = {}) ⇒ Object
- #update_scheduled_transfer(id, attributes = {}, options = {}) ⇒ Object
Instance Method Details
#confirm_scheduled_transfer(id, options = {}) ⇒ Object
25 26 27 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 25 def confirm_scheduled_transfer(id, = {}) request(:put, "scheduled_transfers/#{id}/confirm", {}, [:headers]) end |
#create_scheduled_transfer(attributes = {}, options = {}) ⇒ Object
17 18 19 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 17 def create_scheduled_transfer(attributes = {}, = {}) create(FidorApi::Model::ScheduledTransfer, 'scheduled_transfers', attributes, ) end |
#delete_scheduled_transfer(id, options = {}) ⇒ Object
29 30 31 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 29 def delete_scheduled_transfer(id, = {}) request(:delete, "scheduled_transfers/#{id}", nil, [:headers]) end |
#new_scheduled_transfer(attributes = {}) ⇒ Object
13 14 15 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 13 def new_scheduled_transfer(attributes = {}) FidorApi::Model::ScheduledTransfer.new(attributes) end |
#scheduled_transfer(id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 9 def scheduled_transfer(id, = {}) fetch(:single, FidorApi::Model::ScheduledTransfer, "scheduled_transfers/#{id}", ) end |
#scheduled_transfers(options = {}) ⇒ Object
5 6 7 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 5 def scheduled_transfers( = {}) fetch(:collection, FidorApi::Model::ScheduledTransfer, 'scheduled_transfers', ) end |
#update_scheduled_transfer(id, attributes = {}, options = {}) ⇒ Object
21 22 23 |
# File 'lib/fidor_api/client/dsl/scheduled_transfers.rb', line 21 def update_scheduled_transfer(id, attributes = {}, = {}) update(FidorApi::Model::ScheduledTransfer, "scheduled_transfers/#{id}", id, attributes, ) end |