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.



15362
15363
15364
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15362

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



15360
15361
15362
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15360

def value
  @value
end

Class Method Details

.ALLObject



15382
15383
15384
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15382

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



15367
15368
15369
15370
15371
15372
15373
15374
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15367

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



15394
15395
15396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15394

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

.failedObject



15398
15399
15400
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15398

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



15377
15378
15379
15380
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15377

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

.pendingObject



15386
15387
15388
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15386

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

.updatingObject



15390
15391
15392
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15390

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

Instance Method Details

#to_hashObject



15402
15403
15404
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15402

def to_hash
  value
end