Class: Wiki::Api::PageHeadline

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PageHeadline



8
9
10
11
# File 'lib/wiki/api/page_headline.rb', line 8

def initialize options={}
  self.name = options[:name] if options.include? :name
  self.block = PageBlock.new
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



6
7
8
# File 'lib/wiki/api/page_headline.rb', line 6

def block
  @block
end

#nameObject

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

#elementsObject



13
14
15
# File 'lib/wiki/api/page_headline.rb', line 13

def elements
  self.block.elements
end