Class: SummaryResponse
- Defined in:
- lib/dto/search/summary_response.rb
Overview
Class SummaryResponse represents server response on summary
Search API request. Server response is sent to initializer which creates object with attributes totals
, execTimeMs
accessible via getters:
-
totals
-
execTimeMs
-
exec_time_ms
Examples:
response = SummaryResponse.new("totals" => 20, "execTimeMs" => 100)
response.totals # => 20
response.execTimeMs # => 100
response.exec_time_ms # => 100
Instance Attribute Summary collapse
-
#execTimeMs ⇒ Object
Returns the value of attribute execTimeMs.
-
#totals ⇒ Object
Returns the value of attribute totals.
Method Summary
Methods inherited from Struct
Instance Attribute Details
#execTimeMs ⇒ Object
Returns the value of attribute execTimeMs
15 16 17 |
# File 'lib/dto/search/summary_response.rb', line 15 def execTimeMs @execTimeMs end |
#totals ⇒ Object
Returns the value of attribute totals
15 16 17 |
# File 'lib/dto/search/summary_response.rb', line 15 def totals @totals end |