Sha256: e639bd58c161ba10432b6cab824952a30cba3e7843d11fc9e005cc1d2da6562a

Contents?: true

Size: 566 Bytes

Versions: 16

Compression:

Stored size: 566 Bytes

Contents

# 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
#
class SummaryResponse < Struct.new(:totals, :execTimeMs) do
    def exec_time_ms
      execTimeMs
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
threetaps-client-1.0.14 lib/dto/search/summary_response.rb
threetaps-client-1.0.13 lib/dto/search/summary_response.rb
threetaps-client-1.0.12 lib/dto/search/summary_response.rb
threetaps-client-1.0.11 lib/dto/search/summary_response.rb
threetaps-client-1.0.10 lib/dto/search/summary_response.rb
threetaps-client-1.0.9 lib/dto/search/summary_response.rb
threetaps-client-1.0.8 lib/dto/search/summary_response.rb
threetaps-client-1.0.7 lib/dto/search/summary_response.rb
threetaps-client-1.0.6 lib/dto/search/summary_response.rb
threetaps-client-1.0.5 lib/dto/search/summary_response.rb
threetaps-client-1.0.4 lib/dto/search/summary_response.rb
threetaps-client-1.0.3 lib/dto/search/summary_response.rb
threetaps-client-1.0.2 lib/dto/search/summary_response.rb
threetaps-client-1.0.1 lib/dto/search/summary_response.rb
threetaps-client-1.0.0 lib/dto/search/summary_response.rb
threetaps-client-0.5.1 lib/dto/search/summary_response.rb