Class: Pluggy::Services::CategoryService
- Inherits:
-
BaseService
- Object
- BaseService
- Pluggy::Services::CategoryService
- Defined in:
- lib/pluggy/services/other_services.rb
Instance Method Summary collapse
-
#list(parent_id: nil) ⇒ Object
GET /categories.
- #retrieve(id) ⇒ Object
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Pluggy::Services::BaseService
Instance Method Details
#list(parent_id: nil) ⇒ Object
GET /categories. The spec declares a bare array but its own example is a page envelope, so the shape is sniffed at runtime; either way you get a list that answers #each.
168 169 170 |
# File 'lib/pluggy/services/other_services.rb', line 168 def list(parent_id: nil) list_request("/categories", klass: Resources::Category, parentId: parent_id) end |