Sha256: b8dca69de30442d0475f4b179b8f025eb752c45365400029a1fc15e8dabb422e

Contents?: true

Size: 474 Bytes

Versions: 7

Compression:

Stored size: 474 Bytes

Contents

module HackerNewsSearch
  class Client
    module Users
      
      # Returns the information about a user
      #
      # @param user_name [String] user name from Hacker News
      # @param options [Hash] A customizable set of options. 
      # @return {Hash}
      # @see http://www.hnsearch.com/api
      # @example
      #   HackerNewsSearch.users("sferik")
      def users(user_name, options={})
        get("users/#{user_name}", options)
      end  
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hacker_news_search-0.0.7 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.6 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.5 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.4 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.3 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.2 lib/hacker_news_search/client/users.rb
hacker_news_search-0.0.1 lib/hacker_news_search/client/users.rb