class Twitter::Tweet

Public Instance Methods

type(account) click to toggle source
# 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() click to toggle source
# File lib/flumtter/app/core/client.rb, line 127
def via
  source.gsub(/<(.+)\">/,"").gsub(/<\/a>/,"")
end