Class: Mihari::Services::ResultValue

Inherits:
Object
  • Object
show all
Defined in:
lib/mihari/services/searchers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(results:, total:, filter:) ⇒ ResultValue

Returns a new instance of ResultValue.

Parameters:



20
21
22
23
24
# File 'lib/mihari/services/searchers.rb', line 20

def initialize(results:, total:, filter:)
  @results = results
  @total = total
  @filter = filter
end

Instance Attribute Details

#filterMihari::Structs::Filters::Search (readonly)



13
14
15
# File 'lib/mihari/services/searchers.rb', line 13

def filter
  @filter
end

#resultsArray<Object> (readonly)

Returns:

  • (Array<Object>)


7
8
9
# File 'lib/mihari/services/searchers.rb', line 7

def results
  @results
end

#totalInteger (readonly)

Returns:

  • (Integer)


10
11
12
# File 'lib/mihari/services/searchers.rb', line 10

def total
  @total
end