Class: BAI2::Structures::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/bai2_ruby/structures/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



6
7
8
# File 'lib/bai2_ruby/structures/transaction.rb', line 6

def amount
  @amount
end

#availabilityObject (readonly)

Returns the value of attribute availability.



6
7
8
# File 'lib/bai2_ruby/structures/transaction.rb', line 6

def availability
  @availability
end

#bank_referenceObject (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_referenceObject (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_typeObject (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

#textObject (readonly)

Returns the value of attribute text.



6
7
8
# File 'lib/bai2_ruby/structures/transaction.rb', line 6

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/bai2_ruby/structures/transaction.rb', line 6

def type
  @type
end