class Io::Flow::V0::Models::PayoutAttachmentType

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24904
def PayoutAttachmentType.ALL
  @@all ||= [PayoutAttachmentType.transactions]
end
apply(value) click to toggle source

Returns the instance of PayoutAttachmentType for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 24889
def PayoutAttachmentType.apply(value)
  if value.instance_of?(PayoutAttachmentType)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || PayoutAttachmentType.new(value))
  end
end
from_string(value) click to toggle source

Returns the instance of PayoutAttachmentType for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 24899
def PayoutAttachmentType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  PayoutAttachmentType.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24884
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
transactions() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24908
def PayoutAttachmentType.transactions
  @@_transactions ||= PayoutAttachmentType.new('transactions')
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24912
def to_hash
  value
end