Class: Topsy::UrlInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



17
18
19
# File 'lib/rtopsy/url_info.rb', line 17

def description
  @description
end

#description_attributionObject

Returns the value of attribute description_attribution.



17
18
19
# File 'lib/rtopsy/url_info.rb', line 17

def description_attribution
  @description_attribution
end

#onefortyObject

Returns the value of attribute oneforty.



17
18
19
# File 'lib/rtopsy/url_info.rb', line 17

def oneforty
  @oneforty
end

#titleObject

Returns the value of attribute title.



17
18
19
# File 'lib/rtopsy/url_info.rb', line 17

def title
  @title
end

#topsy_trackback_urlObject

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_totalObject

Returns the value of attribute trackback_total.



17
18
19
# File 'lib/rtopsy/url_info.rb', line 17

def trackback_total
  @trackback_total
end

#urlObject

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_sObject



19
20
21
# File 'lib/rtopsy/url_info.rb', line 19

def to_s
  "Topsy UrlInfo: #{url}, @#{topsy_trackback_url}, #{trackback_total} total"
end