class Io::Flow::V0::Models::AbandonedOrderPromotionStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16337 def AbandonedOrderPromotionStatus.ALL @@all ||= [AbandonedOrderPromotionStatus.active, AbandonedOrderPromotionStatus.inactive] end
active()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16341 def AbandonedOrderPromotionStatus.active @@_active ||= AbandonedOrderPromotionStatus.new('active') end
apply(value)
click to toggle source
Returns the instance of AbandonedOrderPromotionStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 16322 def AbandonedOrderPromotionStatus.apply(value) if value.instance_of?(AbandonedOrderPromotionStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || AbandonedOrderPromotionStatus.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of AbandonedOrderPromotionStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 16332 def AbandonedOrderPromotionStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AbandonedOrderPromotionStatus.ALL.find { |v| v.value == value } end
inactive()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16345 def AbandonedOrderPromotionStatus.inactive @@_inactive ||= AbandonedOrderPromotionStatus.new('inactive') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 16317 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 16349 def to_hash value end