Class: Biblio
Direct Known Subclasses
Instance Attribute Summary collapse
-
#apellido ⇒ Object
readonly
Returns the value of attribute apellido.
-
#autor ⇒ Object
readonly
Returns the value of attribute autor.
-
#edicion ⇒ Object
readonly
Returns the value of attribute edicion.
-
#editorial ⇒ Object
readonly
Returns the value of attribute editorial.
-
#fecha ⇒ Object
readonly
Returns the value of attribute fecha.
-
#isbn ⇒ Object
readonly
Returns the value of attribute isbn.
-
#serie ⇒ Object
readonly
Returns the value of attribute serie.
-
#titulo ⇒ Object
readonly
Returns the value of attribute titulo.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(&block) ⇒ Biblio
constructor
A new instance of Biblio.
- #obtenautor ⇒ Object
- #obtenedicion ⇒ Object
- #obteneditorial ⇒ Object
- #obtenfecha ⇒ Object
- #obtenisbn ⇒ Object
- #obtenserie ⇒ Object
- #obtentitulo ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(&block) ⇒ Biblio
Returns a new instance of Biblio.
5 6 7 8 9 |
# File 'lib/nitz/codigo.rb', line 5 def initialize(&block) if block_given? instance_eval &block end end |
Instance Attribute Details
#apellido ⇒ Object (readonly)
Returns the value of attribute apellido.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def apellido @apellido end |
#autor ⇒ Object (readonly)
Returns the value of attribute autor.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def autor @autor end |
#edicion ⇒ Object (readonly)
Returns the value of attribute edicion.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def edicion @edicion end |
#editorial ⇒ Object (readonly)
Returns the value of attribute editorial.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def editorial @editorial end |
#fecha ⇒ Object (readonly)
Returns the value of attribute fecha.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def fecha @fecha end |
#isbn ⇒ Object (readonly)
Returns the value of attribute isbn.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def isbn @isbn end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def serie @serie end |
#titulo ⇒ Object (readonly)
Returns the value of attribute titulo.
3 4 5 |
# File 'lib/nitz/codigo.rb', line 3 def titulo @titulo end |
Instance Method Details
#<=>(other) ⇒ Object
11 12 13 |
# File 'lib/nitz/codigo.rb', line 11 def <=> (other) @edicion <=> other.edicion end |
#obtenautor ⇒ Object
15 16 17 |
# File 'lib/nitz/codigo.rb', line 15 def obtenautor @autor end |
#obtenedicion ⇒ Object
31 32 33 |
# File 'lib/nitz/codigo.rb', line 31 def obtenedicion @edicion end |
#obteneditorial ⇒ Object
27 28 29 |
# File 'lib/nitz/codigo.rb', line 27 def obteneditorial @editorial end |
#obtenfecha ⇒ Object
35 36 37 |
# File 'lib/nitz/codigo.rb', line 35 def obtenfecha @fecha end |
#obtenisbn ⇒ Object
39 40 41 |
# File 'lib/nitz/codigo.rb', line 39 def obtenisbn @isbn end |
#obtenserie ⇒ Object
23 24 25 |
# File 'lib/nitz/codigo.rb', line 23 def obtenserie @serie end |
#obtentitulo ⇒ Object
19 20 21 |
# File 'lib/nitz/codigo.rb', line 19 def obtentitulo @titulo end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/nitz/codigo.rb', line 43 def to_s "Autor: #@autor, Titulo: #@titulo, Serie: #@serie, Editorial: #@editorial, #@edicion Edicion, Fecha de Publicacion: #@fecha y ISBN: #@isbn" end |