Class: ActsAsScriptural::Book
- Inherits:
-
Object
- Object
- ActsAsScriptural::Book
- Defined in:
- lib/acts_as_scriptural/book.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#num_chapters ⇒ Object
Returns the value of attribute num_chapters.
Instance Method Summary collapse
-
#initialize(name, index, num_chapters) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(name, index, num_chapters) ⇒ Book
Returns a new instance of Book.
3 4 5 6 7 |
# File 'lib/acts_as_scriptural/book.rb', line 3 def initialize(name, index, num_chapters) @name = name @index = index @num_chapters = num_chapters end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
9 10 11 |
# File 'lib/acts_as_scriptural/book.rb', line 9 def index @index end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/acts_as_scriptural/book.rb', line 9 def name @name end |
#num_chapters ⇒ Object
Returns the value of attribute num_chapters.
9 10 11 |
# File 'lib/acts_as_scriptural/book.rb', line 9 def num_chapters @num_chapters end |