Class: FinApps::REST::OrderAssignments

Inherits:
FinAppsCore::REST::Resources
  • Object
show all
Defined in:
lib/finapps/rest/order_assignments.rb

Instance Method Summary collapse

Instance Method Details

#update(id, orders_array) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/finapps/rest/order_assignments.rb', line 6

def update(id, orders_array)
  not_blank(id, :operator_id)
  not_blank(orders_array, :params)
  fail FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless orders_array.is_a? Array

  path = "operators/#{ERB::Util.url_encode(id)}/assign"
  super orders_array, path
end