class Io::Flow::V0::Models::ScheduleExceptionStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26437 def ScheduleExceptionStatus.ALL @@all ||= [ScheduleExceptionStatus.open, ScheduleExceptionStatus.closed] end
apply(value)
click to toggle source
Returns the instance of ScheduleExceptionStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26422 def ScheduleExceptionStatus.apply(value) if value.instance_of?(ScheduleExceptionStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ScheduleExceptionStatus.new(value)) end end
closed()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26445 def ScheduleExceptionStatus.closed @@_closed ||= ScheduleExceptionStatus.new('Closed') end
from_string(value)
click to toggle source
Returns the instance of ScheduleExceptionStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26432 def ScheduleExceptionStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ScheduleExceptionStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26417 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
open()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26441 def ScheduleExceptionStatus.open @@_open ||= ScheduleExceptionStatus.new('Open') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26449 def to_hash value end