Class: Io::Flow::V0::Models::AbandonedOrderSettingStatus
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AbandonedOrderSettingStatus
- 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
- .active ⇒ Object
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of AbandonedOrderSettingStatus for this value, creating a new instance for an unknown value.
-
.from_string(value) ⇒ Object
Returns the instance of AbandonedOrderSettingStatus for this value, or nil if not found.
- .inactive ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ AbandonedOrderSettingStatus
constructor
A new instance of AbandonedOrderSettingStatus.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ AbandonedOrderSettingStatus
Returns a new instance of AbandonedOrderSettingStatus.
12454 12455 12456 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12454 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
12452 12453 12454 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12452 def value @value end |
Class Method Details
.active ⇒ Object
12478 12479 12480 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12478 def AbandonedOrderSettingStatus.active @@_active ||= AbandonedOrderSettingStatus.new('active') end |
.ALL ⇒ Object
12474 12475 12476 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12474 def AbandonedOrderSettingStatus.ALL @@all ||= [AbandonedOrderSettingStatus.active, AbandonedOrderSettingStatus.inactive] end |
.apply(value) ⇒ Object
Returns the instance of AbandonedOrderSettingStatus for this value, creating a new instance for an unknown value
12459 12460 12461 12462 12463 12464 12465 12466 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12459 def AbandonedOrderSettingStatus.apply(value) if value.instance_of?(AbandonedOrderSettingStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || AbandonedOrderSettingStatus.new(value)) end end |
.from_string(value) ⇒ Object
Returns the instance of AbandonedOrderSettingStatus for this value, or nil if not found
12469 12470 12471 12472 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12469 def AbandonedOrderSettingStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AbandonedOrderSettingStatus.ALL.find { |v| v.value == value } end |
.inactive ⇒ Object
12482 12483 12484 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12482 def AbandonedOrderSettingStatus.inactive @@_inactive ||= AbandonedOrderSettingStatus.new('inactive') end |
Instance Method Details
#to_hash ⇒ Object
12486 12487 12488 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12486 def to_hash value end |