Class: MechanicalGithub::WikiPage
- Inherits:
-
Object
- Object
- MechanicalGithub::WikiPage
- Defined in:
- lib/mechanical_github/wiki.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, content, session = nil) ⇒ WikiPage
constructor
A new instance of WikiPage.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
22 23 24 |
# File 'lib/mechanical_github/wiki.rb', line 22 def content @content end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/mechanical_github/wiki.rb', line 22 def name @name end |