[Source]
# File lib/rtopsy/linkpost.rb, line 22 def initialize(hash) hash.each do |key, value| if key == 'target' instance_variable_set("@#{key}", Target.new(value)) else instance_variable_set("@#{key}", value) end end end
# File lib/rtopsy/linkpost.rb, line 18 def to_s "Topsy Linkpost: #{permalink_url}, @#{content}" end
[Validate]