Class: MechanicalGithub::WikiPage

Inherits:
Object
  • Object
show all
Defined in:
lib/mechanical_github/wiki.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, content, session = nil) ⇒ WikiPage

Returns a new instance of WikiPage.



24
25
26
27
28
# File 'lib/mechanical_github/wiki.rb', line 24

def initialize(name, content, session=nil)
  @name = name
  @content = @content
  @session = session
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



22
23
24
# File 'lib/mechanical_github/wiki.rb', line 22

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/mechanical_github/wiki.rb', line 22

def name
  @name
end