Sha256: 3c378bfc738d05689200e1b36d56ee78b6f20d8b403e3aba8bb1b7d47312abbf

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

module BanksApi
  module Shinsei
    class BankAccount < BankAccount
      attr_reader :type, :base_balance

      def initialize(type:, base_balance:, session:, **other)
        super(other)
        @type = type
        @base_balance = Money.from_amount(base_balance, currency)
        @session = session
      end

      def transactions(from:, to:)
        session.fetch_transactions(account: self, from: from, to: to)
      end

      private

        attr_reader :session
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
banks_api-shinsei-0.1.2 lib/banks_api/shinsei/bank_account.rb