class Io::Flow::V0::Models::CenterCapability
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17815 def CenterCapability.ALL @@all ||= [CenterCapability.international, CenterCapability.domestic, CenterCapability.crossdock, CenterCapability.commercial_invoice] end
apply(value)
click to toggle source
Returns the instance of CenterCapability
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 17800 def CenterCapability.apply(value) if value.instance_of?(CenterCapability) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || CenterCapability.new(value)) end end
commercial_invoice()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17831 def CenterCapability.commercial_invoice @@_commercial_invoice ||= CenterCapability.new('commercial_invoice') end
crossdock()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17827 def CenterCapability.crossdock @@_crossdock ||= CenterCapability.new('crossdock') end
domestic()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17823 def CenterCapability.domestic @@_domestic ||= CenterCapability.new('domestic') end
from_string(value)
click to toggle source
Returns the instance of CenterCapability
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 17810 def CenterCapability.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) CenterCapability.ALL.find { |v| v.value == value } end
international()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17819 def CenterCapability.international @@_international ||= CenterCapability.new('international') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17795 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 17835 def to_hash value end