class Io::Flow::V0::Models::LocationErrorCode
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22244 def LocationErrorCode.ALL @@all ||= [LocationErrorCode.address_required, LocationErrorCode.ip_invalid, LocationErrorCode.ip_required, LocationErrorCode.timezone_unavailable] end
address_required()
click to toggle source
Indicates that a non empty address was not specified when required
# File lib/flow_commerce/flow_api_v0_client.rb, line 22249 def LocationErrorCode.address_required @@_address_required ||= LocationErrorCode.new('address_required') end
apply(value)
click to toggle source
Returns the instance of LocationErrorCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 22229 def LocationErrorCode.apply(value) if value.instance_of?(LocationErrorCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || LocationErrorCode.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of LocationErrorCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 22239 def LocationErrorCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) LocationErrorCode.ALL.find { |v| v.value == value } end
ip_invalid()
click to toggle source
Indicates the specified IP Address
is invalid
# File lib/flow_commerce/flow_api_v0_client.rb, line 22254 def LocationErrorCode.ip_invalid @@_ip_invalid ||= LocationErrorCode.new('ip_invalid') end
ip_required()
click to toggle source
Indicates that a non empty IP Address
was not specified when required
# File lib/flow_commerce/flow_api_v0_client.rb, line 22259 def LocationErrorCode.ip_required @@_ip_required ||= LocationErrorCode.new('ip_required') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22224 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 22269 def to_hash value end