class Io::Flow::V0::Models::ReturnStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26017 def ReturnStatus.ALL @@all ||= [ReturnStatus.open, ReturnStatus.refunded] end
apply(value)
click to toggle source
Returns the instance of ReturnStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26002 def ReturnStatus.apply(value) if value.instance_of?(ReturnStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ReturnStatus.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of ReturnStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26012 def ReturnStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ReturnStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25997 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 26021 def ReturnStatus.open @@_open ||= ReturnStatus.new('open') end
refunded()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26025 def ReturnStatus.refunded @@_refunded ||= ReturnStatus.new('refunded') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26029 def to_hash value end