Class: CountResponse
Overview
Class CountResponse represents server response on count
Search API request. Server response is sent to initializer which creates objects with attribute count
accessible via getter:
response = CountResponse.new("count" => 20)
response.count # => 20
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
Method Summary
Methods inherited from Struct
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
8 9 10 |
# File 'lib/dto/search/count_response.rb', line 8 def count @count end |