Sha256: 01b1c2633549dea4d38522f441ac0c4f9bd3e22ee70e926ceda2bf64f0eb8d4e

Contents?: true

Size: 880 Bytes

Versions: 1

Compression:

Stored size: 880 Bytes

Contents

module Commons
  class Client
    module Content
      # Use this query to get the information about one product
      #
      # @param id [String] The id for the product number
      # @param options [Hash] A customizable set of options.
      # @return [Array<Hashie::Mash>]
      # @see http://www.civiccommons.org/api
      # @example
      #   Commons.content("13351")
      def content(id,options={})
        get("node/#{id}.json", options)
      end

      # Use this query to get the Taxonomy Terms
      #
      # @param id [String] The id for Taxonomy Term
      # @param options [Hash] A customizable set of options.
      # @return [Array<Hashie::Mash>]
      # @see http://www.civiccommons.org/api
      # @example
      #   Commons.content("13351")
      def taxonomy_term(id,options={})
        get("taxonomy_term/#{id}.json", options)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commons-0.0.3 lib/commons/client/content.rb