Module: FidorApi::Client::DSL::StandingOrders

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

Instance Method Summary collapse

Instance Method Details

#create_standing_order(attributes = {}) ⇒ Object



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

def create_standing_order(attributes = {})
  create(FidorApi::Model::StandingOrder, 'standing_orders', attributes)
end

#new_standing_order(attributes = {}) ⇒ Object



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

def new_standing_order(attributes = {})
  FidorApi::Model::StandingOrder.new(attributes)
end

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



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

def standing_order(id, options = {})
  fetch(:single, FidorApi::Model::StandingOrder, "standing_orders/#{id}", options)
end