Sha256: baeb6c3c478f3478da453340e4b3437a99fb77aaff09fc6c8187c603c2ec5ca6

Contents?: true

Size: 462 Bytes

Versions: 42

Compression:

Stored size: 462 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)
        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
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
finapps-6.13.1 lib/finapps/rest/order_assignments.rb
finapps-6.13.0 lib/finapps/rest/order_assignments.rb
finapps-6.12.0 lib/finapps/rest/order_assignments.rb
finapps-6.11.0 lib/finapps/rest/order_assignments.rb
finapps-6.10.2 lib/finapps/rest/order_assignments.rb
finapps-6.10.1 lib/finapps/rest/order_assignments.rb
finapps-6.10.0 lib/finapps/rest/order_assignments.rb
finapps-6.9.2 lib/finapps/rest/order_assignments.rb
finapps-6.9.1 lib/finapps/rest/order_assignments.rb
finapps-6.9.0 lib/finapps/rest/order_assignments.rb
finapps-6.8.0 lib/finapps/rest/order_assignments.rb
finapps-6.7.1 lib/finapps/rest/order_assignments.rb
finapps-6.7.0 lib/finapps/rest/order_assignments.rb
finapps-6.6.1 lib/finapps/rest/order_assignments.rb
finapps-6.6.0 lib/finapps/rest/order_assignments.rb
finapps-6.5.0 lib/finapps/rest/order_assignments.rb
finapps-6.4.3 lib/finapps/rest/order_assignments.rb
finapps-6.4.2 lib/finapps/rest/order_assignments.rb
finapps-6.4.1 lib/finapps/rest/order_assignments.rb
finapps-6.4.0 lib/finapps/rest/order_assignments.rb