class Io::Flow::V0::Models::LaneDirection

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21959
def LaneDirection.ALL
  @@all ||= [LaneDirection.outbound, LaneDirection.return]
end
apply(value) click to toggle source

Returns the instance of LaneDirection for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 21944
def LaneDirection.apply(value)
  if value.instance_of?(LaneDirection)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || LaneDirection.new(value))
  end
end
from_string(value) click to toggle source

Returns the instance of LaneDirection for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 21954
def LaneDirection.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  LaneDirection.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21939
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
outbound() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21963
def LaneDirection.outbound
  @@_outbound ||= LaneDirection.new('outbound')
end
return() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21967
def LaneDirection.return
  @@_return ||= LaneDirection.new('return')
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21971
def to_hash
  value
end