Class: SummaryResponse

Inherits:
Struct
  • Object
show all
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

Method Summary

Methods inherited from Struct

from_array, from_hash

Instance Attribute Details

#execTimeMsObject

Returns the value of attribute execTimeMs

Returns:

  • (Object)

    the current value of execTimeMs



15
16
17
# File 'lib/dto/search/summary_response.rb', line 15

def execTimeMs
  @execTimeMs
end

#totalsObject

Returns the value of attribute totals

Returns:

  • (Object)

    the current value of totals



15
16
17
# File 'lib/dto/search/summary_response.rb', line 15

def totals
  @totals
end