Class: Topsy::LinkSearchResult
- Inherits:
-
Object
- Object
- Topsy::LinkSearchResult
- Defined in:
- lib/rtopsy/link_search_result.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#highlight ⇒ Object
Returns the value of attribute highlight.
-
#hits ⇒ Object
Returns the value of attribute hits.
-
#score ⇒ Object
Returns the value of attribute score.
-
#title ⇒ Object
Returns the value of attribute title.
-
#topsy_trackback_url ⇒ Object
Returns the value of attribute topsy_trackback_url.
-
#trackback_permalink ⇒ Object
Returns the value of attribute trackback_permalink.
-
#trackback_total ⇒ Object
Returns the value of attribute trackback_total.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(hash) ⇒ LinkSearchResult
constructor
A new instance of LinkSearchResult.
- #to_s ⇒ Object
Constructor Details
#initialize(hash) ⇒ LinkSearchResult
Returns a new instance of LinkSearchResult.
26 27 28 29 30 |
# File 'lib/rtopsy/link_search_result.rb', line 26 def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def content @content end |
#highlight ⇒ Object
Returns the value of attribute highlight.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def highlight @highlight end |
#hits ⇒ Object
Returns the value of attribute hits.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def hits @hits end |
#score ⇒ Object
Returns the value of attribute score.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def score @score end |
#title ⇒ Object
Returns the value of attribute title.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def title @title end |
#topsy_trackback_url ⇒ Object
Returns the value of attribute topsy_trackback_url.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def topsy_trackback_url @topsy_trackback_url end |
#trackback_permalink ⇒ Object
Returns the value of attribute trackback_permalink.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def trackback_permalink @trackback_permalink end |
#trackback_total ⇒ Object
Returns the value of attribute trackback_total.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def trackback_total @trackback_total end |
#url ⇒ Object
Returns the value of attribute url.
20 21 22 |
# File 'lib/rtopsy/link_search_result.rb', line 20 def url @url end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/rtopsy/link_search_result.rb', line 22 def to_s "Topsy LinkSearchResult: #{url}, @#{title}, hits: #{hits}" end |