Class: Bci
- Inherits:
-
Object
- Object
- Bci
- Defined in:
- lib/bci.rb
Instance Attribute Summary collapse
-
#cuenta_corriente ⇒ Object
readonly
Returns the value of attribute cuenta_corriente.
-
#desde ⇒ Object
readonly
Returns the value of attribute desde.
-
#hasta ⇒ Object
readonly
Returns the value of attribute hasta.
-
#movimientos ⇒ Object
readonly
Returns the value of attribute movimientos.
-
#numero_cartola ⇒ Object
readonly
Returns the value of attribute numero_cartola.
-
#saldo_final ⇒ Object
readonly
Returns the value of attribute saldo_final.
-
#saldo_inicial ⇒ Object
readonly
Returns the value of attribute saldo_inicial.
-
#total_abonos ⇒ Object
readonly
Returns the value of attribute total_abonos.
-
#total_cargos ⇒ Object
readonly
Returns the value of attribute total_cargos.
Instance Method Summary collapse
-
#initialize(numero_cartola, desde, hasta, cuenta_corriente, movimientos, saldo_inicial, saldo_final, total_cargos, total_abonos) ⇒ Bci
constructor
A new instance of Bci.
- #to_s ⇒ Object
Constructor Details
#initialize(numero_cartola, desde, hasta, cuenta_corriente, movimientos, saldo_inicial, saldo_final, total_cargos, total_abonos) ⇒ Bci
Returns a new instance of Bci.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bci.rb', line 13 def initialize( numero_cartola, desde, hasta, cuenta_corriente, movimientos, saldo_inicial, saldo_final, total_cargos, total_abonos ) @numero_cartola = numero_cartola @desde = desde @hasta = hasta @cuenta_corriente = cuenta_corriente @movimientos = movimientos @saldo_inicial = saldo_inicial @saldo_final = saldo_final @total_cargos = total_cargos @total_abonos = total_abonos end |
Instance Attribute Details
#cuenta_corriente ⇒ Object (readonly)
Returns the value of attribute cuenta_corriente.
6 7 8 |
# File 'lib/bci.rb', line 6 def cuenta_corriente @cuenta_corriente end |
#desde ⇒ Object (readonly)
Returns the value of attribute desde.
4 5 6 |
# File 'lib/bci.rb', line 4 def desde @desde end |
#hasta ⇒ Object (readonly)
Returns the value of attribute hasta.
5 6 7 |
# File 'lib/bci.rb', line 5 def hasta @hasta end |
#movimientos ⇒ Object (readonly)
Returns the value of attribute movimientos.
7 8 9 |
# File 'lib/bci.rb', line 7 def movimientos @movimientos end |
#numero_cartola ⇒ Object (readonly)
Returns the value of attribute numero_cartola.
3 4 5 |
# File 'lib/bci.rb', line 3 def numero_cartola @numero_cartola end |
#saldo_final ⇒ Object (readonly)
Returns the value of attribute saldo_final.
9 10 11 |
# File 'lib/bci.rb', line 9 def saldo_final @saldo_final end |
#saldo_inicial ⇒ Object (readonly)
Returns the value of attribute saldo_inicial.
8 9 10 |
# File 'lib/bci.rb', line 8 def saldo_inicial @saldo_inicial end |
#total_abonos ⇒ Object (readonly)
Returns the value of attribute total_abonos.
11 12 13 |
# File 'lib/bci.rb', line 11 def total_abonos @total_abonos end |
#total_cargos ⇒ Object (readonly)
Returns the value of attribute total_cargos.
10 11 12 |
# File 'lib/bci.rb', line 10 def total_cargos @total_cargos end |
Instance Method Details
#to_s ⇒ Object
28 29 30 31 |
# File 'lib/bci.rb', line 28 def to_s "numero_cartola: #{@numero_cartola}\ndesde:#{@desde}\nhasta:#{@hasta}\n" + "cuenta_corriente:#{@cuenta_corriente}\nmovimientos:#{@movimientos}" end |