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
Returns a new instance of ShopifySyncCheck.
26705 26706 26707 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26705 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
26703 26704 26705 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26703 def value @value end |
Class Method Details
.ALL ⇒ Object
26725 26726 26727 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26725 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
26710 26711 26712 26713 26714 26715 26716 26717 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26710 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
26735 26736 26737 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26735 def ShopifySyncCheck. @@_flow_variant_metafields ||= ShopifySyncCheck.new('flow_variant_metafields') end |
.from_string(value) ⇒ Object
Returns the instance of ShopifySyncCheck for this value, or nil if not found
26720 26721 26722 26723 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26720 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
26730 26731 26732 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26730 def ShopifySyncCheck.localized_variants @@_localized_variants ||= ShopifySyncCheck.new('localized_variants') end |
Instance Method Details
#to_hash ⇒ Object
26739 26740 26741 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26739 def to_hash value end |