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.
12095 12096 12097 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12095 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
12093 12094 12095 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12093 def value @value end |
Class Method Details
.active ⇒ Object
12119 12120 12121 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12119 def AbandonedOrderSettingStatus.active @@_active ||= AbandonedOrderSettingStatus.new('active') end |
.ALL ⇒ Object
12115 12116 12117 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12115 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
12100 12101 12102 12103 12104 12105 12106 12107 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12100 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
12110 12111 12112 12113 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12110 def AbandonedOrderSettingStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AbandonedOrderSettingStatus.ALL.find { |v| v.value == value } end |
.inactive ⇒ Object
12123 12124 12125 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12123 def AbandonedOrderSettingStatus.inactive @@_inactive ||= AbandonedOrderSettingStatus.new('inactive') end |
Instance Method Details
#to_hash ⇒ Object
12127 12128 12129 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12127 def to_hash value end |