class Io::Flow::V0::Models::OrderStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23784 def OrderStatus.ALL @@all ||= [OrderStatus.open, OrderStatus.submitted] end
apply(value)
click to toggle source
Returns the instance of OrderStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 23769 def OrderStatus.apply(value) if value.instance_of?(OrderStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderStatus.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of OrderStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 23779 def OrderStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23764 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
open()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23788 def OrderStatus.open @@_open ||= OrderStatus.new('open') end
submitted()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23792 def OrderStatus.submitted @@_submitted ||= OrderStatus.new('submitted') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23796 def to_hash value end