Class: Wiki::Api::PageHeadline
- Inherits:
-
Object
- Object
- Wiki::Api::PageHeadline
- Defined in:
- lib/wiki/api/page_headline.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(options = {}) ⇒ PageHeadline
constructor
A new instance of PageHeadline.
Constructor Details
#initialize(options = {}) ⇒ PageHeadline
8 9 10 11 |
# File 'lib/wiki/api/page_headline.rb', line 8 def initialize ={} self.name = [:name] if .include? :name self.block = PageBlock.new end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
6 7 8 |
# File 'lib/wiki/api/page_headline.rb', line 6 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/wiki/api/page_headline.rb', line 6 def name @name end |
Instance Method Details
#elements ⇒ Object
13 14 15 |
# File 'lib/wiki/api/page_headline.rb', line 13 def elements self.block.elements end |