Class: Komainu::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/komainu/searches_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#matchesObject (readonly)

Returns the value of attribute matches.



7
8
9
# File 'lib/komainu/searches_text.rb', line 7

def matches
  @matches
end

#objectObject (readonly)

Returns the value of attribute object.



7
8
9
# File 'lib/komainu/searches_text.rb', line 7

def object
  @object
end