Sha256: c059bc3a6977fdf1f3844f20365e4de1241fed8bf18bc62b7cdfdd214bb31330

Contents?: true

Size: 940 Bytes

Versions: 1

Compression:

Stored size: 940 Bytes

Contents

module AngellistApi
  class Client
    # Defines methods related to URLs
    #
    # @see http://angel.co/api/spec/reviews
    module Reviews
      # Return reviews for the given user. If no user given, the authenticated
      # user is used. Reviews are paginated and ordered by most recent first.
      # Also returns the total count of positive reviews.
      #
      # @requires_authentication Optional
      # @paginated Yes
      #
      # @param [Hash] options A customizable set of options.
      # @option options [Integer] :user_id user_id of the desired user. If none
      #   given, defaults to the authenticated user.
      #
      # @example Get reviews for the authenticated user.
      #   AngellistApi.get_reviews
      #
      # @example Get reviews for a given user ID.
      #   AngellistApi.get_reviews(:user_id => 1234)
      def get_reviews(options={})
        get("1/reviews", options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angellist_api-1.0.6 lib/angellist_api/client/reviews.rb