Class: Dropmark::Collection
- Inherits:
-
Object
- Object
- Dropmark::Collection
- Includes:
- Her::Model
- Defined in:
- lib/dropmark/collection.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.sort(order) ⇒ Object
19 20 21 |
# File 'lib/dropmark/collection.rb', line 19 def self.sort(order) items = put("collections", :order => order) end |
Instance Method Details
#sort_items(order) ⇒ Object
23 24 25 |
# File 'lib/dropmark/collection.rb', line 23 def sort_items(order) items = Dropmark::Item.put("collections/#{id}/items", :order => order) end |