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.



15335
15336
15337
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15335

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



15333
15334
15335
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15333

def value
  @value
end

Class Method Details

.ALLObject



15355
15356
15357
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15355

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



15340
15341
15342
15343
15344
15345
15346
15347
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15340

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



15367
15368
15369
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15367

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

.failedObject



15371
15372
15373
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15371

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



15350
15351
15352
15353
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15350

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

.pendingObject



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

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

.updatingObject



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

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

Instance Method Details

#to_hashObject



15375
15376
15377
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15375

def to_hash
  value
end