Class: KB::SearchResult
- Inherits:
-
Object
- Object
- KB::SearchResult
- Defined in:
- lib/kb/models/search_result.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(elements:, total:, page:) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(elements:, total:, page:) ⇒ SearchResult
Returns a new instance of SearchResult.
5 6 7 8 9 |
# File 'lib/kb/models/search_result.rb', line 5 def initialize(elements:, total:, page:) @elements = elements @total = total @page = page end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
3 4 5 |
# File 'lib/kb/models/search_result.rb', line 3 def elements @elements end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
3 4 5 |
# File 'lib/kb/models/search_result.rb', line 3 def page @page end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
3 4 5 |
# File 'lib/kb/models/search_result.rb', line 3 def total @total end |