Class: Twitter::Tweet
- Inherits:
-
Object
- Object
- Twitter::Tweet
- 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(account) type = [:tweet] type << (retweet? ? :retweet : :retweet!) type << (user.id == account.id ? :self_tweet : :self_tweet!) type << (reply? ? :reply : :reply!) type << (quote? ? :quote : :quote!) type << (in_reply_to_user_id == account.id ? :reply_to_me : :reply_to_me!) type end |
#via ⇒ Object
127 128 129 |
# File 'lib/flumtter/app/core/client.rb', line 127 def via source.gsub(/<(.+)\">/,"").gsub(/<\/a>/,"") end |