Class: Topsy::Target
- Inherits:
-
Object
- Object
- Topsy::Target
- Defined in:
- lib/rtopsy/target.rb
Instance Attribute Summary collapse
-
#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) ⇒ Target
constructor
A new instance of Target.
- #to_s ⇒ Object
Constructor Details
#initialize(hash) ⇒ Target
Returns a new instance of Target.
20 21 22 23 24 |
# File 'lib/rtopsy/target.rb', line 20 def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#topsy_trackback_url ⇒ Object
Returns the value of attribute topsy_trackback_url.
14 15 16 |
# File 'lib/rtopsy/target.rb', line 14 def topsy_trackback_url @topsy_trackback_url end |
#trackback_total ⇒ Object
Returns the value of attribute trackback_total.
14 15 16 |
# File 'lib/rtopsy/target.rb', line 14 def trackback_total @trackback_total end |
#url ⇒ Object
Returns the value of attribute url.
14 15 16 |
# File 'lib/rtopsy/target.rb', line 14 def url @url end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/rtopsy/target.rb', line 16 def to_s "Topsy Target: #{url}" end |