Class: Io::Flow::V0::Models::ExperienceCloneStatus
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceCloneStatus
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of ExperienceCloneStatus for this value, creating a new instance for an unknown value.
- .completed ⇒ Object
- .failed ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of ExperienceCloneStatus for this value, or nil if not found.
- .pending ⇒ Object
- .updating ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ ExperienceCloneStatus
constructor
A new instance of ExperienceCloneStatus.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ ExperienceCloneStatus
Returns a new instance of ExperienceCloneStatus.
15826 15827 15828 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15826 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
15824 15825 15826 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15824 def value @value end |
Class Method Details
.ALL ⇒ Object
15846 15847 15848 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15846 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
15831 15832 15833 15834 15835 15836 15837 15838 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15831 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 |
.completed ⇒ Object
15858 15859 15860 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15858 def ExperienceCloneStatus.completed @@_completed ||= ExperienceCloneStatus.new('completed') end |
.failed ⇒ Object
15862 15863 15864 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15862 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
15841 15842 15843 15844 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15841 def ExperienceCloneStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ExperienceCloneStatus.ALL.find { |v| v.value == value } end |
.pending ⇒ Object
15850 15851 15852 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15850 def ExperienceCloneStatus.pending @@_pending ||= ExperienceCloneStatus.new('pending') end |
.updating ⇒ Object
15854 15855 15856 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15854 def ExperienceCloneStatus.updating @@_updating ||= ExperienceCloneStatus.new('updating') end |
Instance Method Details
#to_hash ⇒ Object
15866 15867 15868 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15866 def to_hash value end |