class Io::Flow::V0::Models::OrderType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23870 def OrderType.ALL @@all ||= [OrderType.standard, OrderType.replacement] end
apply(value)
click to toggle source
Returns the instance of OrderType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 23855 def OrderType.apply(value) if value.instance_of?(OrderType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of OrderType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 23865 def OrderType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23850 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
replacement()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23878 def OrderType.replacement @@_replacement ||= OrderType.new('replacement') end
standard()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23874 def OrderType.standard @@_standard ||= OrderType.new('standard') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23882 def to_hash value end