Sha256: 4c2499a8c0e0d2ebce46c024af527563ad63982b7112c513244f7325f5d5bd5d

Contents?: true

Size: 689 Bytes

Versions: 15

Compression:

Stored size: 689 Bytes

Contents

# This is the author class for the topsy library. 
# An Author has the following attributes:
#      "name" : "Barack Obama"
#      "url" : "http://twitter.com/barackobama",
#      "topsy_type" : "twitter",
#      "nick" : "barackobama",
#      "description" : "44th President of the United States",
#      "topsy_author_url" : "http://topsy.com/twitter/barackobama",
#      "influence_level" : "5" 
# 
# According to the official Topsy doc: http://code.google.com/p/otterapi/wiki/Resources?tm=6#/authorinfo
module Topsy
  
  class Author < Hashie::Mash
    def to_s
      "Topsy Author: #{name}, @#{nick}, #{topsy_author_url}"
    end
    
    def type
      self[:type]
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
topsy-1.0.1 lib/topsy/author.rb
topsy-1.0.0 lib/topsy/author.rb
topsy-0.6.0 lib/topsy/author.rb
topsy-0.5.1 lib/topsy/author.rb
topsy-0.5.0 lib/topsy/author.rb
topsy-0.4.0 lib/topsy/author.rb
topsy-0.3.6 lib/topsy/author.rb
topsy-0.3.5 lib/topsy/author.rb
topsy-0.3.4 lib/topsy/author.rb
topsy-0.3.3 lib/topsy/author.rb
topsy-0.3.2 lib/topsy/author.rb
topsy-0.3.1 lib/topsy/author.rb
topsy-0.2.1 lib/topsy/author.rb
topsy-0.3.0 lib/topsy/author.rb
topsy-0.2.0 lib/topsy/author.rb