Class: CrateAPI::Items
- Inherits:
-
Object
- Object
- CrateAPI::Items
- Defined in:
- lib/crate_api/items.rb
Overview
Items class which is used to get a set of items from the service.
Constant Summary collapse
- ITEM_ACTIONS =
Hash of available actions to take upon the Items endpoint.
{ :upload => "upload.json", :list => "list.json", :show => "show/%s.json", :destroy => "destroy/%s.json" }
Class Method Summary collapse
-
.from_array(array) ⇒ Array
Creates an array of Item objects.