Sha256: 5ba73fb1eaf6e7f6324946293a75c495d34f81451a8d57b094d8b124d6c3e60b

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

module Stars
  class Favstar
    include HTTParty
    base_uri 'favstar.fm'
    format :xml
    attr_accessor :username
  
    def initialize(username)
      @username = username
    end

    def recent
      self.class.get("/users/#{@username}/rss")['rss']['channel']['item']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stars-0.1.1 lib/stars/favstar.rb
stars-0.1.0 lib/stars/favstar.rb