class Io::Flow::V0::Models::AbandonedOrderSettingStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16379
def AbandonedOrderSettingStatus.ALL
  @@all ||= [AbandonedOrderSettingStatus.active, AbandonedOrderSettingStatus.inactive]
end
active() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16383
def AbandonedOrderSettingStatus.active
  @@_active ||= AbandonedOrderSettingStatus.new('active')
end
apply(value) click to toggle source

Returns the instance of AbandonedOrderSettingStatus for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 16364
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) click to toggle source

Returns the instance of AbandonedOrderSettingStatus for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 16374
def AbandonedOrderSettingStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  AbandonedOrderSettingStatus.ALL.find { |v| v.value == value }
end
inactive() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16387
def AbandonedOrderSettingStatus.inactive
  @@_inactive ||= AbandonedOrderSettingStatus.new('inactive')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16359
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16391
def to_hash
  value
end