class Io::Flow::V0::Models::ShippingConfigurationType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26579 def ShippingConfigurationType.ALL @@all ||= [ShippingConfigurationType.default, ShippingConfigurationType.variant] end
apply(value)
click to toggle source
Returns the instance of ShippingConfigurationType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26564 def ShippingConfigurationType.apply(value) if value.instance_of?(ShippingConfigurationType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ShippingConfigurationType.new(value)) end end
default()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26583 def ShippingConfigurationType.default @@_default ||= ShippingConfigurationType.new('default') end
from_string(value)
click to toggle source
Returns the instance of ShippingConfigurationType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26574 def ShippingConfigurationType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ShippingConfigurationType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26559 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
variant()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26587 def ShippingConfigurationType.variant @@_variant ||= ShippingConfigurationType.new('variant') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26591 def to_hash value end