Class: Bci

Inherits:
Object
  • Object
show all
Defined in:
lib/bci.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_corrienteObject (readonly)

Returns the value of attribute cuenta_corriente.



6
7
8
# File 'lib/bci.rb', line 6

def cuenta_corriente
  @cuenta_corriente
end

#desdeObject (readonly)

Returns the value of attribute desde.



4
5
6
# File 'lib/bci.rb', line 4

def desde
  @desde
end

#hastaObject (readonly)

Returns the value of attribute hasta.



5
6
7
# File 'lib/bci.rb', line 5

def hasta
  @hasta
end

#movimientosObject (readonly)

Returns the value of attribute movimientos.



7
8
9
# File 'lib/bci.rb', line 7

def movimientos
  @movimientos
end

#numero_cartolaObject (readonly)

Returns the value of attribute numero_cartola.



3
4
5
# File 'lib/bci.rb', line 3

def numero_cartola
  @numero_cartola
end

#saldo_finalObject (readonly)

Returns the value of attribute saldo_final.



9
10
11
# File 'lib/bci.rb', line 9

def saldo_final
  @saldo_final
end

#saldo_inicialObject (readonly)

Returns the value of attribute saldo_inicial.



8
9
10
# File 'lib/bci.rb', line 8

def saldo_inicial
  @saldo_inicial
end

#total_abonosObject (readonly)

Returns the value of attribute total_abonos.



11
12
13
# File 'lib/bci.rb', line 11

def total_abonos
  @total_abonos
end

#total_cargosObject (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_sObject



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