Class: WCC::API::RestClient::DefaultResponse
- Inherits:
-
AbstractResponse
- Object
- AbstractResponse
- WCC::API::RestClient::DefaultResponse
- Defined in:
- lib/wcc/api/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 WCC::API::RestClient::AbstractResponse
Instance Method Details
#count ⇒ Object
128 129 130 |
# File 'lib/wcc/api/rest_client/response.rb', line 128 def count body['total'] end |
#page_items ⇒ Object
132 133 134 |
# File 'lib/wcc/api/rest_client/response.rb', line 132 def page_items body['items'] end |
#skip ⇒ Object
124 125 126 |
# File 'lib/wcc/api/rest_client/response.rb', line 124 def skip body['skip'] end |