class Io::Flow::V0::Models::ExportStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20414
def ExportStatus.ALL
  @@all ||= [ExportStatus.created, ExportStatus.processing, ExportStatus.completed, ExportStatus.failed]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20399
def ExportStatus.apply(value)
  if value.instance_of?(ExportStatus)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ExportStatus.new(value))
  end
end
completed() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20426
def ExportStatus.completed
  @@_completed ||= ExportStatus.new('completed')
end
created() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20418
def ExportStatus.created
  @@_created ||= ExportStatus.new('created')
end
failed() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20430
def ExportStatus.failed
  @@_failed ||= ExportStatus.new('failed')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20409
def ExportStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ExportStatus.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20394
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
processing() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20422
def ExportStatus.processing
  @@_processing ||= ExportStatus.new('processing')
end

Public Instance Methods

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