Class: Dnsimple::PaginatedResponseWithQuery

Inherits:
PaginatedResponse show all
Defined in:
lib/dnsimple/response.rb

Instance Attribute Summary collapse

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

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

#queryHash (readonly)

Returns A hash containing the query parameters that produced the results in this response.

Returns:

  • (Hash)

    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