Class: Topsy::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/rtopsy/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject

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_totalObject

Returns the value of attribute trackback_total.



14
15
16
# File 'lib/rtopsy/target.rb', line 14

def trackback_total
  @trackback_total
end

#urlObject

Returns the value of attribute url.



14
15
16
# File 'lib/rtopsy/target.rb', line 14

def url
  @url
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/rtopsy/target.rb', line 16

def to_s
  "Topsy Target: #{url}"
end