Sha256: f725d5a4ca082d3de1053300506458df784bee7595f17349861ae462323ac3a2
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 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 def max_item(options = {}) get('maxitem.json', options) end def updates(options = {}) get('updates.json', options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hn_api-0.0.2 | lib/hn/client.rb |