Class Topsy::Linkpost
In: lib/rtopsy/linkpost.rb
Parent: Object

Methods

new   to_s  

Attributes

content  [RW] 
date  [RW] 
date_alpha  [RW] 
permalink_url  [RW] 
target  [RW] 

Public Class methods

[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

Public Instance methods

[Source]

# File lib/rtopsy/linkpost.rb, line 18
    def to_s
      "Topsy Linkpost: #{permalink_url}, @#{content}"
    end

[Validate]