Class: Rmwiki::ExtendedWikiPage

Inherits:
SimpleWikiPage show all
Defined in:
lib/rmwiki.rb

Instance Attribute Summary collapse

Attributes inherited from SimpleWikiPage

#created_on, #parent_title, #title, #updated_on, #version

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute author_id.



29
30
31
# File 'lib/rmwiki.rb', line 29

def author_id
  @author_id
end

#author_nameObject (readonly)

Returns the value of attribute author_name.



29
30
31
# File 'lib/rmwiki.rb', line 29

def author_name
  @author_name
end

#commentsObject (readonly)

Returns the value of attribute comments.



29
30
31
# File 'lib/rmwiki.rb', line 29

def comments
  @comments
end

#textObject (readonly)

Returns the value of attribute text.



29
30
31
# File 'lib/rmwiki.rb', line 29

def text
  @text
end