Class: Bibliografia::Book

Inherits:
Bibliografia show all
Defined in:
lib/linkedList/Book.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBook

Returns a new instance of Book.



7
8
9
# File 'lib/linkedList/Book.rb', line 7

def initialize
    super
end

Instance Attribute Details

#ISBNObject (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

#apaObject



23
24
25
26
27
# File 'lib/linkedList/Book.rb', line 23

def apa
   a = get_APA
   a += get_ISBN
   a
end

#get_ISBNObject



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