Module: FidorApi::Client::DSL::ScheduledTransfers

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

Instance Method Summary collapse

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, options = {})
  request(:put, "scheduled_transfers/#{id}/confirm", {}, options[: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 = {}, options = {})
  create(FidorApi::Model::ScheduledTransfer, 'scheduled_transfers', attributes, options)
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, options = {})
  request(:delete, "scheduled_transfers/#{id}", nil, options[: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, options = {})
  fetch(:single, FidorApi::Model::ScheduledTransfer, "scheduled_transfers/#{id}", options)
end

#scheduled_transfers(options = {}) ⇒ Object



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

def scheduled_transfers(options = {})
  fetch(:collection, FidorApi::Model::ScheduledTransfer, 'scheduled_transfers', options)
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 = {}, options = {})
  update(FidorApi::Model::ScheduledTransfer, "scheduled_transfers/#{id}", id, attributes, options)
end