Class: JLDrill::VocabularyUsage::Map::SearchResult
- Inherits:
-
Object
- Object
- JLDrill::VocabularyUsage::Map::SearchResult
- Defined in:
- lib/jldrill/model/VocabularyUsage.rb
Overview
Result of searching a UsageMap The successfulHash is the actual hash value that returned results The positions is an array of positions in a file
Instance Attribute Summary collapse
-
#positions ⇒ Object
readonly
Returns the value of attribute positions.
-
#successfulHash ⇒ Object
readonly
Returns the value of attribute successfulHash.
Instance Method Summary collapse
-
#initialize(successfulHash, positions) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(successfulHash, positions) ⇒ SearchResult
Returns a new instance of SearchResult.
28 29 30 31 32 33 34 35 |
# File 'lib/jldrill/model/VocabularyUsage.rb', line 28 def initialize(successfulHash, positions) @successfulHash = successfulHash if !positions.nil? @positions = positions else @positions = [] end end |
Instance Attribute Details
#positions ⇒ Object (readonly)
Returns the value of attribute positions.
26 27 28 |
# File 'lib/jldrill/model/VocabularyUsage.rb', line 26 def positions @positions end |
#successfulHash ⇒ Object (readonly)
Returns the value of attribute successfulHash.
26 27 28 |
# File 'lib/jldrill/model/VocabularyUsage.rb', line 26 def successfulHash @successfulHash end |