Class: Io::Flow::V0::Models::ShopifySyncCheck
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ShopifySyncCheck
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of ShopifySyncCheck for this value, creating a new instance for an unknown value.
-
.flow_variant_metafields ⇒ Object
Provides status check of Flow variant metafields sync to Shopify.
-
.from_string(value) ⇒ Object
Returns the instance of ShopifySyncCheck for this value, or nil if not found.
-
.localized_variants ⇒ Object
Provides status check of localized variant metafields sync to Shopify.
Instance Method Summary collapse
-
#initialize(value) ⇒ ShopifySyncCheck
constructor
A new instance of ShopifySyncCheck.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ ShopifySyncCheck
23477 23478 23479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23477 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
23475 23476 23477 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23475 def value @value end |
Class Method Details
.ALL ⇒ Object
23497 23498 23499 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23497 def ShopifySyncCheck.ALL @@all ||= [ShopifySyncCheck.localized_variants, ShopifySyncCheck.] end |
.apply(value) ⇒ Object
Returns the instance of ShopifySyncCheck for this value, creating a new instance for an unknown value
23482 23483 23484 23485 23486 23487 23488 23489 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23482 def ShopifySyncCheck.apply(value) if value.instance_of?(ShopifySyncCheck) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ShopifySyncCheck.new(value)) end end |
.flow_variant_metafields ⇒ Object
Provides status check of Flow variant metafields sync to Shopify
23507 23508 23509 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23507 def ShopifySyncCheck. ||= ShopifySyncCheck.new('flow_variant_metafields') end |
.from_string(value) ⇒ Object
Returns the instance of ShopifySyncCheck for this value, or nil if not found
23492 23493 23494 23495 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23492 def ShopifySyncCheck.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ShopifySyncCheck.ALL.find { |v| v.value == value } end |
.localized_variants ⇒ Object
Provides status check of localized variant metafields sync to Shopify
23502 23503 23504 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23502 def ShopifySyncCheck.localized_variants @@_localized_variants ||= ShopifySyncCheck.new('localized_variants') end |
Instance Method Details
#to_hash ⇒ Object
23511 23512 23513 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23511 def to_hash value end |