Class: ShopifyAPI::AssignedFulfillmentOrder

Inherits:
Base
  • Object
show all
Defined in:
lib/shopify_api/resources/assigned_fulfillment_order.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

activate_session, api_version, api_version=, #as_json, clear_session, early_july_pagination?, #encode, headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=, version_validation!

Methods included from Countable

#count

Constructor Details

#initialize(attributes = {}, persisted = false) ⇒ AssignedFulfillmentOrder

Returns a new instance of AssignedFulfillmentOrder.


4
5
6
7
# File 'lib/shopify_api/resources/assigned_fulfillment_order.rb', line 4

def initialize(attributes = {}, persisted = false)
  ShopifyAPI::Base.version_validation!(FulfillmentOrder::MINIMUM_VERSION)
  super(attributes, persisted)
end

Class Method Details

.find(scope, *args) ⇒ Object


9
10
11
12
13
14
# File 'lib/shopify_api/resources/assigned_fulfillment_order.rb', line 9

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