Class: Moodle2CC::Moodle2::Models::Book
- Inherits:
-
Object
- Object
- Moodle2CC::Moodle2::Models::Book
- Defined in:
- lib/moodle2cc/moodle2/models/book.rb
Instance Attribute Summary collapse
-
#chapters ⇒ Object
Returns the value of attribute chapters.
-
#custom_titles ⇒ Object
Returns the value of attribute custom_titles.
-
#id ⇒ Object
Returns the value of attribute id.
-
#intro ⇒ Object
Returns the value of attribute intro.
-
#intro_format ⇒ Object
Returns the value of attribute intro_format.
-
#module_id ⇒ Object
Returns the value of attribute module_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#numbering ⇒ Object
Returns the value of attribute numbering.
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
-
#initialize ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize ⇒ Book
Returns a new instance of Book.
5 6 7 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 5 def initialize @chapters = [] end |
Instance Attribute Details
#chapters ⇒ Object
Returns the value of attribute chapters.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def chapters @chapters end |
#custom_titles ⇒ Object
Returns the value of attribute custom_titles.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def custom_titles @custom_titles end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def id @id end |
#intro ⇒ Object
Returns the value of attribute intro.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def intro @intro end |
#intro_format ⇒ Object
Returns the value of attribute intro_format.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def intro_format @intro_format end |
#module_id ⇒ Object
Returns the value of attribute module_id.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def module_id @module_id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def name @name end |
#numbering ⇒ Object
Returns the value of attribute numbering.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def numbering @numbering end |
#visible ⇒ Object
Returns the value of attribute visible.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/book.rb', line 3 def visible @visible end |