Class: Io::Flow::V0::Models::ExperienceCloneStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ExperienceCloneStatus

Returns a new instance of ExperienceCloneStatus.



15732
15733
15734
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15732

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



15730
15731
15732
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15730

def value
  @value
end

Class Method Details

.ALLObject



15752
15753
15754
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15752

def ExperienceCloneStatus.ALL
  @@all ||= [ExperienceCloneStatus.pending, ExperienceCloneStatus.updating, ExperienceCloneStatus.completed, ExperienceCloneStatus.failed]
end

.apply(value) ⇒ Object

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



15737
15738
15739
15740
15741
15742
15743
15744
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15737

def ExperienceCloneStatus.apply(value)
  if value.instance_of?(ExperienceCloneStatus)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ExperienceCloneStatus.new(value))
  end
end

.completedObject



15764
15765
15766
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15764

def ExperienceCloneStatus.completed
  @@_completed ||= ExperienceCloneStatus.new('completed')
end

.failedObject



15768
15769
15770
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15768

def ExperienceCloneStatus.failed
  @@_failed ||= ExperienceCloneStatus.new('failed')
end

.from_string(value) ⇒ Object

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



15747
15748
15749
15750
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15747

def ExperienceCloneStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ExperienceCloneStatus.ALL.find { |v| v.value == value }
end

.pendingObject



15756
15757
15758
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15756

def ExperienceCloneStatus.pending
  @@_pending ||= ExperienceCloneStatus.new('pending')
end

.updatingObject



15760
15761
15762
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15760

def ExperienceCloneStatus.updating
  @@_updating ||= ExperienceCloneStatus.new('updating')
end

Instance Method Details

#to_hashObject



15772
15773
15774
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15772

def to_hash
  value
end