class Io::Flow::V0::Models::ChannelCurrencyCapability
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17911 def ChannelCurrencyCapability.ALL @@all ||= [ChannelCurrencyCapability.payment_authorizations, ChannelCurrencyCapability.settlement_currency] end
apply(value)
click to toggle source
Returns the instance of ChannelCurrencyCapability
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 17896 def ChannelCurrencyCapability.apply(value) if value.instance_of?(ChannelCurrencyCapability) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ChannelCurrencyCapability.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of ChannelCurrencyCapability
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 17906 def ChannelCurrencyCapability.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ChannelCurrencyCapability.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17891 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
settlement_currency()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17919 def ChannelCurrencyCapability.settlement_currency @@_settlement_currency ||= ChannelCurrencyCapability.new('settlement_currency') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17923 def to_hash value end