class BanksApi::Shinsei::BankAccount

Attributes

base_balance[R]
session[R]
type[R]

Public Class Methods

new(type:, base_balance:, session:, **other) click to toggle source
Calls superclass method
# File lib/banks_api/shinsei/bank_account.rb, line 6
def initialize(type:, base_balance:, session:, **other)
  super(other)
  @type = type
  @base_balance = Money.from_amount(base_balance, currency)
  @session = session
end

Public Instance Methods

transactions(from:, to:) click to toggle source
# File lib/banks_api/shinsei/bank_account.rb, line 13
def transactions(from:, to:)
  session.fetch_transactions(account: self, from: from, to: to)
end