Class: Twitter::Tweet

Inherits:
Object
  • Object
show all
Defined in:
lib/flumtter/app/core/client.rb

Instance Method Summary collapse

Instance Method Details

#type(account) ⇒ Object



117
118
119
120
121
122
123
124
125
# File 'lib/flumtter/app/core/client.rb', line 117

def type()
  type = [:tweet]
  type << (retweet? ? :retweet : :retweet!)
  type << (user.id == .id ? :self_tweet : :self_tweet!)
  type << (reply? ? :reply : :reply!)
  type << (quote? ? :quote : :quote!)
  type << (in_reply_to_user_id == .id ? :reply_to_me : :reply_to_me!)
  type
end

#viaObject



127
128
129
# File 'lib/flumtter/app/core/client.rb', line 127

def via
  source.gsub(/<(.+)\">/,"").gsub(/<\/a>/,"")
end