Class: Bibliografia::Book
- Inherits:
-
Bibliografia
- Object
- Bibliografia
- Bibliografia::Book
- Defined in:
- lib/linkedList/Book.rb
Instance Attribute Summary collapse
-
#ISBN ⇒ Object
readonly
Returns the value of attribute ISBN.
Instance Method Summary collapse
- #add_ISBN(num) ⇒ Object
- #apa ⇒ Object
- #get_ISBN ⇒ Object
-
#initialize ⇒ Book
constructor
A new instance of Book.
- #isbn(is) ⇒ Object
Constructor Details
#initialize ⇒ Book
Returns a new instance of Book.
7 8 9 |
# File 'lib/linkedList/Book.rb', line 7 def initialize super end |
Instance Attribute Details
#ISBN ⇒ Object (readonly)
Returns the value of attribute ISBN.
5 6 7 |
# File 'lib/linkedList/Book.rb', line 5 def ISBN @ISBN end |
Instance Method Details
#add_ISBN(num) ⇒ Object
11 12 13 |
# File 'lib/linkedList/Book.rb', line 11 def add_ISBN(num) @ISBN = num end |
#apa ⇒ Object
23 24 25 26 27 |
# File 'lib/linkedList/Book.rb', line 23 def apa a = get_APA a += get_ISBN a end |
#get_ISBN ⇒ Object
15 16 17 |
# File 'lib/linkedList/Book.rb', line 15 def get_ISBN @ISBN + ". " end |
#isbn(is) ⇒ Object
19 20 21 |
# File 'lib/linkedList/Book.rb', line 19 def isbn(is) add_ISBN(is) end |