class Io::Flow::V0::Models::StatementAttachmentType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26811 def StatementAttachmentType.ALL @@all ||= [StatementAttachmentType.csv] end
apply(value)
click to toggle source
Returns the instance of StatementAttachmentType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26796 def StatementAttachmentType.apply(value) if value.instance_of?(StatementAttachmentType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || StatementAttachmentType.new(value)) end end
csv()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26815 def StatementAttachmentType.csv @@_csv ||= StatementAttachmentType.new('csv') end
from_string(value)
click to toggle source
Returns the instance of StatementAttachmentType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26806 def StatementAttachmentType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) StatementAttachmentType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26791 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26819 def to_hash value end