Sha256: 7e2cad48a3aca08ccf5d7fb952cf2be87b2b55384879e16803a8c95d161b108b

Contents?: true

Size: 463 Bytes

Versions: 44

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module FinApps
  module REST
    class OrderAssignments < FinAppsCore::REST::Resources
      def update(id, orders_array)
        not_blank(id, :operator_id)
        not_blank(orders_array, :params)
        raise FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless orders_array.is_a? Array

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
finapps-5.0.32 lib/finapps/rest/order_assignments.rb
finapps-5.0.31 lib/finapps/rest/order_assignments.rb
finapps-5.0.30 lib/finapps/rest/order_assignments.rb
finapps-5.0.29 lib/finapps/rest/order_assignments.rb
finapps-5.0.28 lib/finapps/rest/order_assignments.rb
finapps-5.0.27 lib/finapps/rest/order_assignments.rb
finapps-5.0.26 lib/finapps/rest/order_assignments.rb
finapps-5.0.25 lib/finapps/rest/order_assignments.rb
finapps-5.0.24 lib/finapps/rest/order_assignments.rb
finapps-5.0.23 lib/finapps/rest/order_assignments.rb
finapps-5.0.22 lib/finapps/rest/order_assignments.rb
finapps-5.0.21 lib/finapps/rest/order_assignments.rb
finapps-5.0.20 lib/finapps/rest/order_assignments.rb
finapps-5.0.19 lib/finapps/rest/order_assignments.rb
finapps-5.0.17 lib/finapps/rest/order_assignments.rb
finapps-5.0.16 lib/finapps/rest/order_assignments.rb
finapps-5.0.15 lib/finapps/rest/order_assignments.rb
finapps-5.0.14 lib/finapps/rest/order_assignments.rb
finapps-5.0.13 lib/finapps/rest/order_assignments.rb
finapps-5.0.12 lib/finapps/rest/order_assignments.rb