Class: KazeClient::Collection::ItemsRequest

Inherits:
Utils::FinalRequest show all
Includes:
Utils::AuthentifiedRequest, Utils::ListRequest
Defined in:
lib/kaze_client/request/requests/collections/items/items_request.rb

Overview

List the items assigned to the collection id.

Constant Summary

Constants inherited from Request

Request::DEFAULT_HEADERS

Instance Attribute Summary

Attributes included from Utils::ListRequest

#filters, #order_direction, #order_field, #page, #per_page

Attributes included from Utils::AuthentifiedRequest

#token

Attributes inherited from Request

#body, #headers, #method, #query, #url

Instance Method Summary collapse

Methods included from Utils::ListRequest

#add_order_direction, #add_order_field, #add_page, #add_per_page, #filter_by_id, #method_missing, #respond_to_missing?

Methods included from Utils::AuthentifiedRequest

#with_token

Methods inherited from Request

#error_for, #parameters

Constructor Details

#initialize(id) ⇒ ItemsRequest

Returns a new instance of ItemsRequest.

Since:

  • 0.3.2



18
19
20
# File 'lib/kaze_client/request/requests/collections/items/items_request.rb', line 18

def initialize(id)
  super(:get, "api/collections/#{id}/items")
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class KazeClient::Utils::ListRequest