Class: Reflective::Search::Results
- Inherits:
-
Object
- Object
- Reflective::Search::Results
- Defined in:
- lib/reflective/search.rb
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
Instance Method Summary collapse
- #ids ⇒ Object
-
#initialize(matches) ⇒ Results
constructor
A new instance of Results.
Constructor Details
#initialize(matches) ⇒ Results
Returns a new instance of Results.
22 23 24 |
# File 'lib/reflective/search.rb', line 22 def initialize(matches) @matches = matches end |
Instance Attribute Details
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
20 21 22 |
# File 'lib/reflective/search.rb', line 20 def matches @matches end |
Instance Method Details
#ids ⇒ Object
26 27 28 |
# File 'lib/reflective/search.rb', line 26 def ids matches.map(&:id) end |