Sha256: b5a63b4389d3f3857a029d6906379bc6f0d9fae2f21b1d9f3561764880e01ba2
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# encoding: utf-8 require 'feedly_api/version' require 'feedly_api/errors' require 'feedly_api/api' require 'feedly_api/client' module FeedlyApi class Feed attr_reader :url, :subscribers, :title, :velocity, :id def initialize(url) @url = url @id = "feed%2F#{CGI.escape(@url)}" get_info end def get_info json = Api.fetch(:feeds, @id) @subscribers = json.fetch(:subscribers) { nil } @title = json.fetch(:title) { nil } @velocity = json.fetch(:velocity) { nil } end def items(params = {}) Api.fetch(:streams, @id, params).fetch(:items) end end require 'cgi' require 'net/http' require 'json' require 'date' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feedly_api-0.4.2 | lib/feedly_api.rb |