Class: Topsy::UrlInfo
- Inherits:
-
Object
- Object
- Topsy::UrlInfo
- Defined in:
- lib/rtopsy/url_info.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#description_attribution ⇒ Object
Returns the value of attribute description_attribution.
-
#oneforty ⇒ Object
Returns the value of attribute oneforty.
-
#title ⇒ Object
Returns the value of attribute title.
-
#topsy_trackback_url ⇒ Object
Returns the value of attribute topsy_trackback_url.
-
#trackback_total ⇒ Object
Returns the value of attribute trackback_total.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(hash) ⇒ UrlInfo
constructor
A new instance of UrlInfo.
- #to_s ⇒ Object
Constructor Details
#initialize(hash) ⇒ UrlInfo
Returns a new instance of UrlInfo.
23 24 25 26 27 |
# File 'lib/rtopsy/url_info.rb', line 23 def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def description @description end |
#description_attribution ⇒ Object
Returns the value of attribute description_attribution.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def description_attribution @description_attribution end |
#oneforty ⇒ Object
Returns the value of attribute oneforty.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def oneforty @oneforty end |
#title ⇒ Object
Returns the value of attribute title.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def title @title end |
#topsy_trackback_url ⇒ Object
Returns the value of attribute topsy_trackback_url.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def topsy_trackback_url @topsy_trackback_url end |
#trackback_total ⇒ Object
Returns the value of attribute trackback_total.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def trackback_total @trackback_total end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/rtopsy/url_info.rb', line 17 def url @url end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/rtopsy/url_info.rb', line 19 def to_s "Topsy UrlInfo: #{url}, @#{topsy_trackback_url}, #{trackback_total} total" end |