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


128
129
130
# File 'lib/wcc/api/rest_client/response.rb', line 128

def count
  body['total']
end

#page_itemsObject


132
133
134
# File 'lib/wcc/api/rest_client/response.rb', line 132

def page_items
  body['items']
end

#skipObject


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

def skip
  body['skip']
end