class Io::Flow::V0::Models::DeliveryWindowLocation
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18834 def DeliveryWindowLocation.ALL @@all ||= [DeliveryWindowLocation.center, DeliveryWindowLocation.crossdock, DeliveryWindowLocation.customer] end
apply(value)
click to toggle source
Returns the instance of DeliveryWindowLocation
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 18819 def DeliveryWindowLocation.apply(value) if value.instance_of?(DeliveryWindowLocation) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || DeliveryWindowLocation.new(value)) end end
center()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18838 def DeliveryWindowLocation.center @@_center ||= DeliveryWindowLocation.new('center') end
crossdock()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18842 def DeliveryWindowLocation.crossdock @@_crossdock ||= DeliveryWindowLocation.new('crossdock') end
customer()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18846 def DeliveryWindowLocation.customer @@_customer ||= DeliveryWindowLocation.new('customer') end
from_string(value)
click to toggle source
Returns the instance of DeliveryWindowLocation
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 18829 def DeliveryWindowLocation.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) DeliveryWindowLocation.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18814 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18850 def to_hash value end