Sha256: 6dbc3b8277bb108aa68875694f22dada3d31d6b29ecddfbd04dd9b9ed7fa831d
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
module Evrythng class Client # Defines methods related to collections module Collections # Returns a list of collections # # @param options [Hash] A customizable set of options. # @return [Array] The requested list of collections. # @see http://dev.evrythng.com/collections # @example Return the list of collections # Evrythng.collections def collections(options={}) get('collections', options) end # Creates a collection # # @param name [String] The name of collection. # @param description [String] The description of collection. # @param options [Hash] A customizable set of options. # @return [Hash] The created collection. # @see http://dev.evrythng.com/collections # @example Create the authenticating user's collection # Evrythng.collection_create("This is a new collection!", "Here comes the description.") def collection_create(name, description=nil, options={}) post('collections', options.merge(:name => name, :description => description)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evrythng-0.1.1 | lib/evrythng/client/collections.rb |
evrythng-0.1.0 | lib/evrythng/client/collections.rb |