class Io::Flow::V0::Models::OrderQuoteAddressType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23478 def OrderQuoteAddressType.ALL @@all ||= [OrderQuoteAddressType.shipping] end
apply(value)
click to toggle source
Returns the instance of OrderQuoteAddressType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 23463 def OrderQuoteAddressType.apply(value) if value.instance_of?(OrderQuoteAddressType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderQuoteAddressType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of OrderQuoteAddressType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 23473 def OrderQuoteAddressType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderQuoteAddressType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23458 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
shipping()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23482 def OrderQuoteAddressType.shipping @@_shipping ||= OrderQuoteAddressType.new('shipping') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23486 def to_hash value end