Class: HighVoltage::PageCollector
- Inherits:
-
Object
- Object
- HighVoltage::PageCollector
- Defined in:
- lib/high_voltage/page_collector.rb
Instance Attribute Summary collapse
-
#content_path ⇒ Object
readonly
Returns the value of attribute content_path.
Instance Method Summary collapse
-
#initialize(content_path) ⇒ PageCollector
constructor
A new instance of PageCollector.
- #page_ids ⇒ Object
Constructor Details
#initialize(content_path) ⇒ PageCollector
Returns a new instance of PageCollector.
7 8 9 |
# File 'lib/high_voltage/page_collector.rb', line 7 def initialize(content_path) @content_path = content_path.to_s end |
Instance Attribute Details
#content_path ⇒ Object (readonly)
Returns the value of attribute content_path.
5 6 7 |
# File 'lib/high_voltage/page_collector.rb', line 5 def content_path @content_path end |
Instance Method Details
#page_ids ⇒ Object
11 12 13 |
# File 'lib/high_voltage/page_collector.rb', line 11 def page_ids pages.select(&:valid?).map(&:id) end |