Class: Libro
- Inherits:
-
Bibliografia
- Object
- Bibliografia
- Libro
- Defined in:
- lib/referencia/clase.rb
Instance Attribute Summary collapse
-
#edicion ⇒ Object
Returns the value of attribute edicion.
-
#editorial ⇒ Object
Returns the value of attribute editorial.
-
#isbn ⇒ Object
Returns the value of attribute isbn.
-
#serie ⇒ Object
Returns the value of attribute serie.
Attributes inherited from Bibliografia
Instance Method Summary collapse
- #identificador(isbn) ⇒ Object
-
#initialize(titulo, &bloque) ⇒ Libro
constructor
A new instance of Libro.
- #nombre_editorial(editorial) ⇒ Object
- #nombre_serie(serie) ⇒ Object
- #numero_edicion(edicion) ⇒ Object
Methods inherited from Bibliografia
#<=>, #autores, #fecha_publicacion
Constructor Details
#initialize(titulo, &bloque) ⇒ Libro
Returns a new instance of Libro.
35 36 37 38 |
# File 'lib/referencia/clase.rb', line 35 def initialize (titulo, &bloque) super(titulo) instance_eval &bloque if block_given? end |
Instance Attribute Details
#edicion ⇒ Object
Returns the value of attribute edicion.
33 34 35 |
# File 'lib/referencia/clase.rb', line 33 def edicion @edicion end |
#editorial ⇒ Object
Returns the value of attribute editorial.
33 34 35 |
# File 'lib/referencia/clase.rb', line 33 def editorial @editorial end |
#isbn ⇒ Object
Returns the value of attribute isbn.
33 34 35 |
# File 'lib/referencia/clase.rb', line 33 def isbn @isbn end |
#serie ⇒ Object
Returns the value of attribute serie.
33 34 35 |
# File 'lib/referencia/clase.rb', line 33 def serie @serie end |
Instance Method Details
#identificador(isbn) ⇒ Object
51 52 53 |
# File 'lib/referencia/clase.rb', line 51 def identificador(isbn) @isbn = isbn end |
#nombre_editorial(editorial) ⇒ Object
43 44 45 |
# File 'lib/referencia/clase.rb', line 43 def nombre_editorial(editorial) @editorial = editorial end |
#nombre_serie(serie) ⇒ Object
39 40 41 |
# File 'lib/referencia/clase.rb', line 39 def nombre_serie(serie) @serie = serie end |
#numero_edicion(edicion) ⇒ Object
47 48 49 |
# File 'lib/referencia/clase.rb', line 47 def numero_edicion(edicion) @edicion = edicion end |