Class: Mihari::Services::ResultValue
- Inherits:
-
Object
- Object
- Mihari::Services::ResultValue
- Defined in:
- lib/mihari/services/searchers.rb
Instance Attribute Summary collapse
- #filter ⇒ Mihari::Structs::Filters::Search readonly
- #results ⇒ Array<Object> readonly
- #total ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(results:, total:, filter:) ⇒ ResultValue
constructor
A new instance of ResultValue.
Constructor Details
#initialize(results:, total:, filter:) ⇒ ResultValue
Returns a new instance of ResultValue.
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
#filter ⇒ Mihari::Structs::Filters::Search (readonly)
13 14 15 |
# File 'lib/mihari/services/searchers.rb', line 13 def filter @filter end |
#results ⇒ Array<Object> (readonly)
7 8 9 |
# File 'lib/mihari/services/searchers.rb', line 7 def results @results end |
#total ⇒ Integer (readonly)
10 11 12 |
# File 'lib/mihari/services/searchers.rb', line 10 def total @total end |