Class: Mintaka::PageCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/mintaka/page_collector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_path) ⇒ PageCollector

Returns a new instance of PageCollector.



7
8
9
# File 'lib/mintaka/page_collector.rb', line 7

def initialize(content_path)
  @content_path = content_path.to_s
end

Instance Attribute Details

#content_pathObject (readonly)

Returns the value of attribute content_path.



5
6
7
# File 'lib/mintaka/page_collector.rb', line 5

def content_path
  @content_path
end

Instance Method Details

#page_idsObject



11
12
13
# File 'lib/mintaka/page_collector.rb', line 11

def page_ids
  pages.select(&:valid?).map(&:id)
end