Class: Redsync::WikiPage

Inherits:
Object
  • Object
show all
Defined in:
lib/redsync/wiki_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ WikiPage

Returns a new instance of WikiPage.



5
6
7
8
9
# File 'lib/redsync/wiki_page.rb', line 5

def initialize(options)
  @name = options[:name]
  @mtime = options[:mtime]
  @content = options[:content]
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/redsync/wiki_page.rb', line 3

def content
  @content
end

#mtimeObject

Returns the value of attribute mtime.



3
4
5
# File 'lib/redsync/wiki_page.rb', line 3

def mtime
  @mtime
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/redsync/wiki_page.rb', line 3

def name
  @name
end