Class: Libro

Inherits:
Bibliografia show all
Defined in:
lib/referencia/clase.rb

Instance Attribute Summary collapse

Attributes inherited from Bibliografia

#autor, #fecha, #titulo

Instance Method Summary collapse

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

#edicionObject

Returns the value of attribute edicion.



33
34
35
# File 'lib/referencia/clase.rb', line 33

def edicion
  @edicion
end

#editorialObject

Returns the value of attribute editorial.



33
34
35
# File 'lib/referencia/clase.rb', line 33

def editorial
  @editorial
end

#isbnObject

Returns the value of attribute isbn.



33
34
35
# File 'lib/referencia/clase.rb', line 33

def isbn
  @isbn
end

#serieObject

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