Class: WCC::API::RestClient::DefaultResponse

Inherits:
AbstractResponse show all
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

#countObject



119
120
121
# File 'lib/wcc/api/rest_client/response.rb', line 119

def count
  body['total']
end

#page_itemsObject



123
124
125
# File 'lib/wcc/api/rest_client/response.rb', line 123

def page_items
  body['items']
end

#skipObject



115
116
117
# File 'lib/wcc/api/rest_client/response.rb', line 115

def skip
  body['skip']
end