# 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 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) @title = json.fetch(:title) @velocity = json.fetch(:velocity) end def items(params = {}) Api.fetch(:streams, @id, params).fetch(:items) end end require 'cgi' require 'net/http' require 'json' require 'date' end