class Io::Flow::V0::Models::ExperienceStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20362
def ExperienceStatus.ALL
  @@all ||= [ExperienceStatus.draft, ExperienceStatus.active, ExperienceStatus.archiving, ExperienceStatus.archived]
end
active() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20370
def ExperienceStatus.active
  @@_active ||= ExperienceStatus.new('active')
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20347
def ExperienceStatus.apply(value)
  if value.instance_of?(ExperienceStatus)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ExperienceStatus.new(value))
  end
end
archived() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20380
def ExperienceStatus.archived
  @@_archived ||= ExperienceStatus.new('archived')
end
archiving() click to toggle source

Archiving indicates an experience has been archived. We allow some time for sessions to expire before fully marking the experience archived.

# File lib/flow_commerce/flow_api_v0_client.rb, line 20376
def ExperienceStatus.archiving
  @@_archiving ||= ExperienceStatus.new('archiving')
end
draft() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20366
def ExperienceStatus.draft
  @@_draft ||= ExperienceStatus.new('draft')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20357
def ExperienceStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ExperienceStatus.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20342
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 20384
def to_hash
  value
end