Class: Libro

Inherits:
ReferenciaBase show all
Defined in:
lib/referencia/libro.rb

Instance Attribute Summary collapse

Attributes inherited from ReferenciaBase

#m_anio, #m_autor_formato, #m_autores, #m_titulo

Instance Method Summary collapse

Methods inherited from ReferenciaBase

#<=>, #format_autor, #format_titulo

Constructor Details

#initialize(a_autores, a_titulo, a_anio, a_edicion, a_volumen, a_lugar, a_editorial, a_isbn) ⇒ Libro

Returns a new instance of Libro.



4
5
6
7
# File 'lib/referencia/libro.rb', line 4

def initialize(a_autores,a_titulo,a_anio, a_edicion,a_volumen,a_lugar,a_editorial,a_isbn)
    super(a_autores,a_titulo,a_anio)
    @m_edicion,@m_volumen,@m_lugar,@m_editorial,@m_isbn =  a_edicion,a_volumen,a_lugar,a_editorial,a_isbn
end

Instance Attribute Details

#m_edicionObject (readonly)

Returns the value of attribute m_edicion.



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

def m_edicion
  @m_edicion
end

#m_editorialObject (readonly)

Returns the value of attribute m_editorial.



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

def m_editorial
  @m_editorial
end

#m_isbnObject (readonly)

Returns the value of attribute m_isbn.



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

def m_isbn
  @m_isbn
end

#m_lugarObject (readonly)

Returns the value of attribute m_lugar.



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

def m_lugar
  @m_lugar
end

#m_volumenObject (readonly)

Returns the value of attribute m_volumen.



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

def m_volumen
  @m_volumen
end

Instance Method Details

#to_sObject



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

def to_s
    "#{@m_autor_formato}(#{@m_anio}), #{@m_titulo}, (#{@m_edicion}), (#{@m_volumen}), #{@m_lugar}: #{@m_editorial}"
end