Sha256: d49e0e1c323ddbb090e9450c9778e90abae2c2df33ca2cde099d0c81169e7710

Contents?: true

Size: 535 Bytes

Versions: 9

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true
module ShopifyAPI
  class AssignedFulfillmentOrder < Base
    def initialize(attributes = {}, persisted = false)
      ShopifyAPI::Base.version_validation!(FulfillmentOrder::MINIMUM_VERSION)
      super(attributes, persisted)
    end

    def self.find(scope, *args)
      ShopifyAPI::Base.version_validation!(FulfillmentOrder::MINIMUM_VERSION)

      assigned_fulfillment_orders = super(scope, *args)
      assigned_fulfillment_orders.map { |afo| FulfillmentOrder.new(afo.attributes) }
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
shopify_api-9.5.2 lib/shopify_api/resources/assigned_fulfillment_order.rb
ruby_shopify_api-1.2.0 lib/ruby_shopify_api/resources/assigned_fulfillment_order.rb
ruby_shopify_api-1.1.0 lib/shopify_api/resources/assigned_fulfillment_order.rb
ruby_shopify_api-1.0.0 lib/shopify_api/resources/assigned_fulfillment_order.rb
shopify_api-9.5.1 lib/shopify_api/resources/assigned_fulfillment_order.rb
shopify_api-9.5 lib/shopify_api/resources/assigned_fulfillment_order.rb
shopify_api-9.4.1 lib/shopify_api/resources/assigned_fulfillment_order.rb
shopify_api-9.4.0 lib/shopify_api/resources/assigned_fulfillment_order.rb
shopify_api-9.3.0 lib/shopify_api/resources/assigned_fulfillment_order.rb