class Io::Flow::V0::Models::Direction
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18880 def Direction.ALL @@all ||= [Direction.outbound, Direction.return] end
apply(value)
click to toggle source
Returns the instance of Direction
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 18865 def Direction.apply(value) if value.instance_of?(Direction) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || Direction.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of Direction
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 18875 def Direction.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) Direction.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18860 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
outbound()
click to toggle source
Outbound shipment to typically fulfill a customer order
# File lib/flow_commerce/flow_api_v0_client.rb, line 18885 def Direction.outbound @@_outbound ||= Direction.new('outbound') end
return()
click to toggle source
Inbound or return shipment
# File lib/flow_commerce/flow_api_v0_client.rb, line 18890 def Direction.return @@_return ||= Direction.new('return') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18894 def to_hash value end