Class: Komainu::SearchResult
- Inherits:
-
Object
- Object
- Komainu::SearchResult
- Defined in:
- lib/komainu/searches_text.rb
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, matches) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(object, matches) ⇒ SearchResult
Returns a new instance of SearchResult.
8 9 10 11 |
# File 'lib/komainu/searches_text.rb', line 8 def initialize object, matches @object = object @matches = matches end |
Instance Attribute Details
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
7 8 9 |
# File 'lib/komainu/searches_text.rb', line 7 def matches @matches end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
7 8 9 |
# File 'lib/komainu/searches_text.rb', line 7 def object @object end |