class Beaver::PayoutBankGb1

PayoutBankGb1 Model.

Attributes

account_number[RW]

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

sort_code[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_gb1.rb, line 32
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  account_number = hash['account_number']
  sort_code = hash['sort_code']

  # Create object from extracted values.
  PayoutBankGb1.new(account_number,
                    sort_code)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/payout_bank_gb1.rb, line 18
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_number'] = 'account_number'
  @_hash['sort_code'] = 'sort_code'
  @_hash
end
new(account_number = nil, sort_code = nil) click to toggle source
# File lib/beaver/models/payout_bank_gb1.rb, line 25
def initialize(account_number = nil,
               sort_code = nil)
  @account_number = account_number
  @sort_code = sort_code
end