Class: PyramidScheme::Indexer::Base
- Inherits:
-
Object
- Object
- PyramidScheme::Indexer::Base
- Defined in:
- lib/pyramid_scheme/indexer/base.rb
Overview
defines an interface for indexers
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configure_task_name ⇒ Object
readonly
Returns the value of attribute configure_task_name.
-
#index_task_name ⇒ Object
readonly
Returns the value of attribute index_task_name.
Instance Method Summary collapse
- #configure ⇒ Object
- #index ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'lib/pyramid_scheme/indexer/base.rb', line 7 def initialize @index_task_name = self.class.index_task_name @configure_task_name = self.class.configure_task_name end |
Instance Attribute Details
#configure_task_name ⇒ Object (readonly)
Returns the value of attribute configure_task_name.
5 6 7 |
# File 'lib/pyramid_scheme/indexer/base.rb', line 5 def configure_task_name @configure_task_name end |
#index_task_name ⇒ Object (readonly)
Returns the value of attribute index_task_name.
5 6 7 |
# File 'lib/pyramid_scheme/indexer/base.rb', line 5 def index_task_name @index_task_name end |
Instance Method Details
#configure ⇒ Object
12 13 14 |
# File 'lib/pyramid_scheme/indexer/base.rb', line 12 def configure Rake::Task[@configure_task_name].invoke end |
#index ⇒ Object
16 17 18 |
# File 'lib/pyramid_scheme/indexer/base.rb', line 16 def index Rake::Task[@index_task_name].invoke end |