Class: RestClient::DefaultResponse
- Inherits:
-
AbstractResponse
- Object
- AbstractResponse
- RestClient::DefaultResponse
- Defined in:
- lib/rest_client/response.rb
Instance Attribute Summary
Attributes inherited from AbstractResponse
#client, #raw_body, #raw_response, #request
Instance Method Summary collapse
Methods inherited from AbstractResponse
#assert_ok!, #body, #collection_response?, #each_page, #error_message, #first, #initialize, #items, #next_page, #next_page?, #next_page_query
Constructor Details
This class inherits a constructor from RestClient::AbstractResponse
Instance Method Details
#count ⇒ Object
125 126 127 |
# File 'lib/rest_client/response.rb', line 125 def count body['total'] end |
#page_items ⇒ Object
129 130 131 |
# File 'lib/rest_client/response.rb', line 129 def page_items body['items'] end |
#skip ⇒ Object
121 122 123 |
# File 'lib/rest_client/response.rb', line 121 def skip body['skip'] end |