Class: MediaWiki::FakeWiki::WikiPage

Inherits:
Object
  • Object
show all
Defined in:
lib/media_wiki/fake_wiki.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WikiPage

Returns a new instance of WikiPage.



475
476
477
# File 'lib/media_wiki/fake_wiki.rb', line 475

def initialize(options={})
  options.each { |k, v| send("#{k}=", v) }
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



479
480
481
# File 'lib/media_wiki/fake_wiki.rb', line 479

def author
  @author
end

#contentObject

Returns the value of attribute content.



479
480
481
# File 'lib/media_wiki/fake_wiki.rb', line 479

def content
  @content
end