class Io::Flow::V0::Models::DutyItemApprovalStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19059 def DutyItemApprovalStatus.ALL @@all ||= [DutyItemApprovalStatus.pending, DutyItemApprovalStatus.certified, DutyItemApprovalStatus.decertified] end
apply(value)
click to toggle source
Returns the instance of DutyItemApprovalStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 19044 def DutyItemApprovalStatus.apply(value) if value.instance_of?(DutyItemApprovalStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || DutyItemApprovalStatus.new(value)) end end
certified()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19067 def DutyItemApprovalStatus.certified @@_certified ||= DutyItemApprovalStatus.new('certified') end
decertified()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19071 def DutyItemApprovalStatus.decertified @@_decertified ||= DutyItemApprovalStatus.new('decertified') end
from_string(value)
click to toggle source
Returns the instance of DutyItemApprovalStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 19054 def DutyItemApprovalStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) DutyItemApprovalStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19039 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
pending()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19063 def DutyItemApprovalStatus.pending @@_pending ||= DutyItemApprovalStatus.new('pending') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19075 def to_hash value end