Sha256: 4595e2dcbb66ec74c2e53af02d1e2503cfb167a18d4cf405f1f1df6a0426d125

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

Contents

# This is the link_search_result class for the topsy library. 
# A LinkSearchResult has the following attributes:
#            "trackback_permalink" : "http://twitter.com/ewerickson/status/3562164195",
#            "hits" : 38,
#            "trackback_total" : 157,
#            "topsy_trackback_url" : "http://topsy.com/tb/www.redstate.com/erick/2009/08/26/breaking-rumors-surface-that-leon-panetta-is-resigning/",
#            "url" : "http://www.redstate.com/erick/2009/08/26/breaking-rumors-surface-that-leon-panetta-is-resigning/",
#            "content" : "Panetta is rumored to have sent a resignation letter to Barack Obama today:  http://bit.ly/CDMg9",
#            "title" : "BREAKING: Rumors Surface That Leon Panetta is Resigning - Erick’s blog - RedState",
#            "score" : 0.75521481,
#            "highlight" : "Panetta is rumored to have sent a resignation letter to 
#                <span class=\"highlight-term\">Barack</span> <span class=\"highlight-term\">Obama</span> today:  http://bit.ly/CDMg9"
# According to the official Topsy doc: http://code.google.com/p/otterapi/wiki/Resources?tm=6#/search
#
module Topsy
  
  class LinkSearchResult < Hashie::Mash
    
    def to_s
      "Topsy LinkSearchResult: #{url}, @#{title}, hits: #{hits}"
    end
    
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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