Sha256: 074be12be7f6e6d2544177d6dadbc5860abf3096dbea5ae784077cd3b2348caf
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
# This is the linkpost class for the topsy library. # A Linkpost has the following attributes: # "permalink_url" : "http://twitter.com/barackobama/status/3569838653", # "target" : target instance # "date" : "1251337427", # "content" : "Highlights from the tribute to Sen. Kennedy's life and # accomplishments from last year's Democratic National Convention: http://bit.ly/TJcyr", # "date_alpha" : "3 hours ago" # According to the official Topsy doc: http://code.google.com/p/otterapi/wiki/Resources?tm=6#/linkposts # module Topsy class Linkpost < Hashie::Dash property :permalink_url property :target property :date property :content property :date_alpha def to_s "Topsy Linkpost: #{permalink_url}, @#{content}" end def target=(value) if value self[:target] = Topsy::Target.new(value) else self[:target] = value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
topsy-0.2.0 | lib/topsy/linkpost.rb |