Class: Rmwiki::ExtendedWikiPage
- Inherits:
-
SimpleWikiPage
- Object
- SimpleWikiPage
- Rmwiki::ExtendedWikiPage
- Defined in:
- lib/rmwiki.rb
Instance Attribute Summary collapse
-
#author_id ⇒ Object
readonly
Returns the value of attribute author_id.
-
#author_name ⇒ Object
readonly
Returns the value of attribute author_name.
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from SimpleWikiPage
#created_on, #parent_title, #title, #updated_on, #version
Instance Method Summary collapse
-
#initialize(raw_obj) ⇒ ExtendedWikiPage
constructor
A new instance of ExtendedWikiPage.
Constructor Details
#initialize(raw_obj) ⇒ ExtendedWikiPage
Returns a new instance of ExtendedWikiPage.
30 31 32 33 34 35 36 |
# File 'lib/rmwiki.rb', line 30 def initialize(raw_obj) super(raw_obj) @text = raw_obj['text'] @author_id = raw_obj['author']['id'] @author_name = raw_obj['author']['name'] @comments = raw_obj['comments'] end |
Instance Attribute Details
#author_id ⇒ Object (readonly)
Returns the value of attribute author_id.
29 30 31 |
# File 'lib/rmwiki.rb', line 29 def @author_id end |
#author_name ⇒ Object (readonly)
Returns the value of attribute author_name.
29 30 31 |
# File 'lib/rmwiki.rb', line 29 def @author_name end |
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
29 30 31 |
# File 'lib/rmwiki.rb', line 29 def comments @comments end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
29 30 31 |
# File 'lib/rmwiki.rb', line 29 def text @text end |