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.
11917 11918 11919 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11917 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
11915 11916 11917 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11915 def value @value end |
Class Method Details
.active ⇒ Object
11941 11942 11943 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11941 def AbandonedOrderSettingStatus.active @@_active ||= AbandonedOrderSettingStatus.new('active') end |
.ALL ⇒ Object
11937 11938 11939 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11937 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
11922 11923 11924 11925 11926 11927 11928 11929 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11922 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
11932 11933 11934 11935 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11932 def AbandonedOrderSettingStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AbandonedOrderSettingStatus.ALL.find { |v| v.value == value } end |
.inactive ⇒ Object
11945 11946 11947 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11945 def AbandonedOrderSettingStatus.inactive @@_inactive ||= AbandonedOrderSettingStatus.new('inactive') end |
Instance Method Details
#to_hash ⇒ Object
11949 11950 11951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11949 def to_hash value end |