Sha256: 8616cf3b6b6c2ceb056d3dedff2eedce5c65a0e96071f02f61932565c49b2b70
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
require "banks_api/inspectable_builder" module BanksApi class Transaction include InspectableBuilder.new(%i(date description amount)) attr_reader :date, :description, :amount def initialize(date:, description:, amount:, currency:) @date = date @description = description @amount = Money.from_amount(amount, currency) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
banks_api-0.1.5 | lib/banks_api/transaction.rb |