class Beaver::PayoutBankGb

PayoutBankGb Model.

Attributes

last_four[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_gb.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  last_four = hash['last_four']

  # Create object from extracted values.
  PayoutBankGb.new(last_four)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/payout_bank_gb.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['last_four'] = 'last_four'
  @_hash
end
new(last_four = nil) click to toggle source
# File lib/beaver/models/payout_bank_gb.rb, line 20
def initialize(last_four = nil)
  @last_four = last_four
end