Sha256: 449bd76ddee4a1a4f9764dbaf5308379c37215ca2accddc6c6152b4c699a1740

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

module Evrythng
  class Client
    # Defines methods related to things
    module Things
      # Returns a list of things
      #
      # @format :json, :xml
      # @authenticated true
      # @rate_limited true
      # @param options [Hash] A customizable set of options.
      # @return [Hashie::Rash] The requested list of things.
      # @see http://dev.evrythng.net/doc/get/things
      # @example Return the list of things
      #   Evrythng.things
      def things(options={})
        response = get('things', options)
        format.to_s.downcase == 'xml' ? response['things'] : response
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrythng-0.0.1 lib/evrythng/client/things.rb