Sha256: 7cf565f4b97dbe59de8b5cfc7f44572f7802ca7d930f373b9aa365559837d727
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
require_relative 'request' require_relative 'connection' require_relative 'configuration' module HN class Client include HN::Request include HN::Connection include HN::Configuration def initialize reset end def item(id, options = {}) get("item/#{id}.json", options) end def user(id, options = {}) get("user/#{id}.json", options) end def top_stories(options = {}) get('topstories.json', options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hn_api-0.0.1 | lib/hn/client.rb |