Class: Dnsimple::PaginatedResponseWithQuery
- Inherits:
-
PaginatedResponse
- Object
- Response
- CollectionResponse
- PaginatedResponse
- Dnsimple::PaginatedResponseWithQuery
- Defined in:
- lib/dnsimple/response.rb
Instance Attribute Summary collapse
-
#query ⇒ Hash
readonly
A hash containing the query parameters that produced the results in this response.
Attributes inherited from PaginatedResponse
#page, #per_page, #total_entries, #total_pages
Attributes inherited from Response
#data, #http_response, #rate_limit, #rate_limit_remaining, #rate_limit_reset
Instance Method Summary collapse
-
#initialize(http_response, collection) ⇒ PaginatedResponseWithQuery
constructor
A new instance of PaginatedResponseWithQuery.
Constructor Details
#initialize(http_response, collection) ⇒ PaginatedResponseWithQuery
Returns a new instance of PaginatedResponseWithQuery.
85 86 87 88 |
# File 'lib/dnsimple/response.rb', line 85 def initialize(http_response, collection) super @query = http_response["query"] end |
Instance Attribute Details
#query ⇒ Hash (readonly)
Returns A hash containing the query parameters that produced the results in this response.
83 84 85 |
# File 'lib/dnsimple/response.rb', line 83 def query @query end |