Module: HackerNewsSearch::Client::Items

Included in:
HackerNewsSearch::Client
Defined in:
lib/hacker_news_search/client/items.rb

Instance Method Summary collapse

Instance Method Details

#item(item_id, options = {}) ⇒ Hash

Returns the information of the item from Hacker News Search

Examples:

HackerNewsSearch.item("2619846-a30f9")

Parameters:

  • The hacker news item plus the thriftdb_id - must know the thriftDB id

  • (defaults to: {})

    A customizable set of options.

Returns:

See Also:



13
14
15
# File 'lib/hacker_news_search/client/items.rb', line 13

def item(item_id, options={})
   get("items/#{item_id}", options)
end