lib/evrythng/client/thngs.rb in evrythng-0.0.3 vs lib/evrythng/client/thngs.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 thngs.
+ # @return [Hashie::Mash] The requested list of thngs.
# @see http://developer.evrythng.net/thngs
# @example Return the list of thngs
# Evrythng.thngs
def thngs(options={})
response = get('thngs', options)
@@ -23,10 +23,10 @@
# @authenticated true
# @rate_limited false
# @param identifier [String] The identifier of thng.
# @param description [String] The description of thng.
# @param options [Hash] A customizable set of options.
- # @return [Hashie::Rash] The created thng.
+ # @return [Hashie::Mash] The created thng.
# @see http://developer.evrythng.net/thngs
# @example Create the authenticating user's thng
# Evrythng.thng_create("my.test.thng", "Here comes the description.")
def thng_create(identifier, description=nil, options={})
response = post('thngs', options.merge(:thng => { :identifier => identifier, :description => description }))