Class: Reflective::Search::Results

Inherits:
Object
  • Object
show all
Defined in:
lib/reflective/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#matchesObject (readonly)

Returns the value of attribute matches.



20
21
22
# File 'lib/reflective/search.rb', line 20

def matches
  @matches
end

Instance Method Details

#idsObject



26
27
28
# File 'lib/reflective/search.rb', line 26

def ids
  matches.map(&:id)
end