class Io::Flow::V0::Models::PhysicalDeliverySpecialSerivce

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25038
def PhysicalDeliverySpecialSerivce.ALL
  @@all ||= [PhysicalDeliverySpecialSerivce.cold_storage, PhysicalDeliverySpecialSerivce.hazardous, PhysicalDeliverySpecialSerivce.perishable]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 25023
def PhysicalDeliverySpecialSerivce.apply(value)
  if value.instance_of?(PhysicalDeliverySpecialSerivce)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || PhysicalDeliverySpecialSerivce.new(value))
  end
end
cold_storage() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25042
def PhysicalDeliverySpecialSerivce.cold_storage
  @@_cold_storage ||= PhysicalDeliverySpecialSerivce.new('cold_storage')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 25033
def PhysicalDeliverySpecialSerivce.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  PhysicalDeliverySpecialSerivce.ALL.find { |v| v.value == value }
end
hazardous() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25046
def PhysicalDeliverySpecialSerivce.hazardous
  @@_hazardous ||= PhysicalDeliverySpecialSerivce.new('hazardous')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25018
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
perishable() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25050
def PhysicalDeliverySpecialSerivce.perishable
  @@_perishable ||= PhysicalDeliverySpecialSerivce.new('perishable')
end

Public Instance Methods

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