class Io::Flow::V0::Models::ExperienceCountryStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20279 def ExperienceCountryStatus.ALL @@all ||= [ExperienceCountryStatus.enabled, ExperienceCountryStatus.disabled] end
apply(value)
click to toggle source
Returns the instance of ExperienceCountryStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 20264 def ExperienceCountryStatus.apply(value) if value.instance_of?(ExperienceCountryStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ExperienceCountryStatus.new(value)) end end
disabled()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20287 def ExperienceCountryStatus.disabled @@_disabled ||= ExperienceCountryStatus.new('disabled') end
enabled()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20283 def ExperienceCountryStatus.enabled @@_enabled ||= ExperienceCountryStatus.new('enabled') end
from_string(value)
click to toggle source
Returns the instance of ExperienceCountryStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 20274 def ExperienceCountryStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ExperienceCountryStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20259 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 20291 def to_hash value end