class Io::Flow::V0::Models::ZeroAmountIndicator
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28576 def ZeroAmountIndicator.ALL @@all ||= [ZeroAmountIndicator.zero, ZeroAmountIndicator.free] end
apply(value)
click to toggle source
Returns the instance of ZeroAmountIndicator
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 28561 def ZeroAmountIndicator.apply(value) if value.instance_of?(ZeroAmountIndicator) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ZeroAmountIndicator.new(value)) end end
free()
click to toggle source
Show the word ‘FREE` in the label
# File lib/flow_commerce/flow_api_v0_client.rb, line 28586 def ZeroAmountIndicator.free @@_free ||= ZeroAmountIndicator.new('free') end
from_string(value)
click to toggle source
Returns the instance of ZeroAmountIndicator
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 28571 def ZeroAmountIndicator.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ZeroAmountIndicator.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28556 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
zero()
click to toggle source
Show the number 0.00 in the label
# File lib/flow_commerce/flow_api_v0_client.rb, line 28581 def ZeroAmountIndicator.zero @@_zero ||= ZeroAmountIndicator.new('zero') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28590 def to_hash value end