Class: BAI2::Structures::Transaction
- Inherits:
-
Object
- Object
- BAI2::Structures::Transaction
- Defined in:
- lib/bai2_ruby/structures/transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#availability ⇒ Object
readonly
Returns the value of attribute availability.
-
#bank_reference ⇒ Object
readonly
Returns the value of attribute bank_reference.
-
#customer_reference ⇒ Object
readonly
Returns the value of attribute customer_reference.
-
#funds_type ⇒ Object
readonly
Returns the value of attribute funds_type.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, amount:, funds_type:, availability:, bank_reference:, customer_reference:, text:) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(type:, amount:, funds_type:, availability:, bank_reference:, customer_reference:, text:) ⇒ Transaction
Returns a new instance of Transaction.
8 9 10 11 12 13 14 15 16 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 8 def initialize(type:, amount:, funds_type:, availability:, bank_reference:, customer_reference:, text:) @type = type @amount = amount @funds_type = funds_type @availability = availability @bank_reference = bank_reference @customer_reference = customer_reference @text = text end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def amount @amount end |
#availability ⇒ Object (readonly)
Returns the value of attribute availability.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def availability @availability end |
#bank_reference ⇒ Object (readonly)
Returns the value of attribute bank_reference.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def bank_reference @bank_reference end |
#customer_reference ⇒ Object (readonly)
Returns the value of attribute customer_reference.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def customer_reference @customer_reference end |
#funds_type ⇒ Object (readonly)
Returns the value of attribute funds_type.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def funds_type @funds_type end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/bai2_ruby/structures/transaction.rb', line 6 def type @type end |