Class: Hayde::Indexer
- Inherits:
-
Object
- Object
- Hayde::Indexer
- Defined in:
- lib/hayde/indexer.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#level_hash ⇒ Object
readonly
Returns the value of attribute level_hash.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(body, warnings) ⇒ Indexer
constructor
A new instance of Indexer.
Constructor Details
#initialize(body, warnings) ⇒ Indexer
Returns a new instance of Indexer.
8 9 10 11 12 |
# File 'lib/hayde/indexer.rb', line 8 def initialize(body, warnings) @body = body @result = @body.dup @warnings = warnings end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/hayde/indexer.rb', line 6 def body @body end |
#level_hash ⇒ Object (readonly)
Returns the value of attribute level_hash.
6 7 8 |
# File 'lib/hayde/indexer.rb', line 6 def level_hash @level_hash end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/hayde/indexer.rb', line 6 def result @result end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
6 7 8 |
# File 'lib/hayde/indexer.rb', line 6 def warnings @warnings end |
Instance Method Details
#index ⇒ Object
14 15 16 |
# File 'lib/hayde/indexer.rb', line 14 def index @level_hash = process(body) end |