class Beaver::PayoutBankCa1

PayoutBankCa1 Model.

Attributes

account_number[RW]

TODO: Write general description for this method @return [String]

account_type[RW]

TODO: Write general description for this method @return [AccountTypeEnum]

institution_number[RW]

TODO: Write general description for this method @return [String]

transit_number[RW]

TODO: Write general description for this method @return [String]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/payout_bank_ca1.rb, line 46
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  account_number = hash['account_number']
  account_type = hash['account_type']
  institution_number = hash['institution_number']
  transit_number = hash['transit_number']

  # Create object from extracted values.
  PayoutBankCa1.new(account_number,
                    account_type,
                    institution_number,
                    transit_number)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/payout_bank_ca1.rb, line 26
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_number'] = 'account_number'
  @_hash['account_type'] = 'account_type'
  @_hash['institution_number'] = 'institution_number'
  @_hash['transit_number'] = 'transit_number'
  @_hash
end
new(account_number = nil, account_type = nil, institution_number = nil, transit_number = nil) click to toggle source
# File lib/beaver/models/payout_bank_ca1.rb, line 35
def initialize(account_number = nil,
               account_type = nil,
               institution_number = nil,
               transit_number = nil)
  @account_number = account_number
  @account_type = account_type
  @institution_number = institution_number
  @transit_number = transit_number
end