Class: Topsy::Tweet
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Topsy::Tweet
- Defined in:
- lib/topsy/tweet.rb
Instance Method Summary collapse
Instance Method Details
#author=(value) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/topsy/tweet.rb', line 20 def (value) if value self[:author] = Topsy::Author.new(value) else self[:author] = value end end |
#target=(value) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/topsy/tweet.rb', line 28 def target=(value) if value self[:target] = Topsy::Target.new(value) else self[:target] = value end end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/topsy/tweet.rb', line 16 def to_s "Topsy Tweet: #{permalink_url}, #{content}" end |