Class: GamesAndRpgParadise::Book
- Inherits:
-
Object
- Object
- GamesAndRpgParadise::Book
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
Instance Method Summary collapse
-
#initialize(id = 0) ⇒ Book
constructor
A new instance of Book.
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
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb', line 5 def @author end |
#id ⇒ Object (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 |
#pages ⇒ Object
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 |
#publisher ⇒ Object
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 |