class Io::Flow::V0::Models::LogisticsFormatPreference
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22299 def LogisticsFormatPreference.ALL @@all ||= [LogisticsFormatPreference.shopify_console, LogisticsFormatPreference.existing_3pl_integration, LogisticsFormatPreference.byo_integration] end
apply(value)
click to toggle source
Returns the instance of LogisticsFormatPreference
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 22284 def LogisticsFormatPreference.apply(value) if value.instance_of?(LogisticsFormatPreference) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || LogisticsFormatPreference.new(value)) end end
byo_integration()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22311 def LogisticsFormatPreference.byo_integration @@_byo_integration ||= LogisticsFormatPreference.new('byo_integration') end
existing_3pl_integration()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22307 def LogisticsFormatPreference.existing_3pl_integration @@_existing_3pl_integration ||= LogisticsFormatPreference.new('existing_3pl_integration') end
from_string(value)
click to toggle source
Returns the instance of LogisticsFormatPreference
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 22294 def LogisticsFormatPreference.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) LogisticsFormatPreference.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22279 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
shopify_console()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22303 def LogisticsFormatPreference.shopify_console @@_shopify_console ||= LogisticsFormatPreference.new('shopify_console') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22315 def to_hash value end