lib/evrythng/client/collections.rb in evrythng-0.0.3 vs lib/evrythng/client/collections.rb in evrythng-0.0.5
- old
+ new
@@ -6,11 +6,11 @@
#
# @format :json, :xml
# @authenticated true
# @rate_limited true
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The requested list of collections.
+ # @return [Hashie::Mash] The requested list of collections.
# @see http://dev.evrythng.net/doc/get/collections
# @example Return the list of collections
# Evrythng.collections
def collections(options={})
response = get('collections', options)
@@ -23,10 +23,10 @@
# @authenticated true
# @rate_limited false
# @param name [String] The name of collection.
# @param description [String] The description of collection.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The created collection.
+ # @return [Hashie::Mash] The created collection.
# @see http://dev.evrythng.net/doc/post/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={})
response = post('collections', options.merge(:collection => { :name => name, :description => description }))