class Io::Flow::V0::Models::ExporterOfRecord

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20464
def ExporterOfRecord.ALL
  @@all ||= [ExporterOfRecord.flow, ExporterOfRecord.organization]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20449
def ExporterOfRecord.apply(value)
  if value.instance_of?(ExporterOfRecord)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ExporterOfRecord.new(value))
  end
end
flow() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20468
def ExporterOfRecord.flow
  @@_flow ||= ExporterOfRecord.new('flow')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20459
def ExporterOfRecord.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ExporterOfRecord.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20444
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
organization() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20472
def ExporterOfRecord.organization
  @@_organization ||= ExporterOfRecord.new('organization')
end

Public Instance Methods

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