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.
18253 18254 18255 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18253 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18251 18252 18253 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18251 def value @value end |
Class Method Details
.ALL ⇒ Object
18273 18274 18275 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18273 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
18258 18259 18260 18261 18262 18263 18264 18265 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18258 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
18283 18284 18285 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18283 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
18268 18269 18270 18271 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18268 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
18278 18279 18280 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18278 def ShopifySyncCheck.localized_variants @@_localized_variants ||= ShopifySyncCheck.new('localized_variants') end |
Instance Method Details
#to_hash ⇒ Object
18287 18288 18289 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18287 def to_hash value end |