Class: GamesAndRpgParadise::Book

Inherits:
Object
  • Object
show all
Defined in:
lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = 0) ⇒ Book

Returns a new instance of Book.



7
8
9
10
11
12
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 7

def initialize(id=0)
  @id = id
  @author = ''
  @publisher = ''
  @pages = []
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



5
6
7
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 5

def author
  @author
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 6

def id
  @id
end

#pagesObject

Returns the value of attribute pages.



5
6
7
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 5

def pages
  @pages
end

#publisherObject

Returns the value of attribute publisher.



5
6
7
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 5

def publisher
  @publisher
end