Sha256: 6fb1d106d2c2726cffcf074492e296b2f59755556bc1feda2559bf3212e4421a

Contents?: true

Size: 466 Bytes

Versions: 16

Compression:

Stored size: 466 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.new '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

16 entries across 16 versions & 1 rubygems

Version Path
finapps-4.0.3 lib/finapps/rest/order_assignments.rb
finapps-4.0.2 lib/finapps/rest/order_assignments.rb
finapps-4.0.1 lib/finapps/rest/order_assignments.rb
finapps-3.0.7 lib/finapps/rest/order_assignments.rb
finapps-3.0.6 lib/finapps/rest/order_assignments.rb
finapps-3.0.5 lib/finapps/rest/order_assignments.rb
finapps-3.0.4 lib/finapps/rest/order_assignments.rb
finapps-3.0.3 lib/finapps/rest/order_assignments.rb
finapps-3.0.2 lib/finapps/rest/order_assignments.rb
finapps-3.0.1 lib/finapps/rest/order_assignments.rb
finapps-2.3.7 lib/finapps/rest/order_assignments.rb
finapps-2.3.6 lib/finapps/rest/order_assignments.rb
finapps-2.3.5 lib/finapps/rest/order_assignments.rb
finapps-2.3.3 lib/finapps/rest/order_assignments.rb
finapps-2.3.2 lib/finapps/rest/order_assignments.rb
finapps-2.3.1 lib/finapps/rest/order_assignments.rb