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



126
127
128
# File 'lib/wcc/api/rest_client/response.rb', line 126

def count
  body['total']
end

#page_itemsObject



130
131
132
# File 'lib/wcc/api/rest_client/response.rb', line 130

def page_items
  body['items']
end

#skipObject



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

def skip
  body['skip']
end