Class: Libro
- Inherits:
-
ReferenciaBase
- Object
- ReferenciaBase
- Libro
- Defined in:
- lib/referencia/libro.rb
Instance Attribute Summary collapse
-
#m_edicion ⇒ Object
readonly
Returns the value of attribute m_edicion.
-
#m_editorial ⇒ Object
readonly
Returns the value of attribute m_editorial.
-
#m_isbn ⇒ Object
readonly
Returns the value of attribute m_isbn.
-
#m_lugar ⇒ Object
readonly
Returns the value of attribute m_lugar.
-
#m_volumen ⇒ Object
readonly
Returns the value of attribute m_volumen.
Attributes inherited from ReferenciaBase
#m_anio, #m_autor_formato, #m_autores, #m_titulo
Instance Method Summary collapse
-
#initialize(a_autores, a_titulo, a_anio, a_edicion, a_volumen, a_lugar, a_editorial, a_isbn) ⇒ Libro
constructor
A new instance of Libro.
- #to_s ⇒ Object
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_edicion ⇒ Object (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_editorial ⇒ Object (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_isbn ⇒ Object (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_lugar ⇒ Object (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_volumen ⇒ Object (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_s ⇒ Object
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 |