class Flumtter::TimeLine::DeletedTweet

Public Class Methods

new(object, twitter) click to toggle source
Calls superclass method Flumtter::TimeLine::Base::new
# File lib/flumtter/app/plugins/timeline/deleted_tweet.rb, line 8
def initialize(object, twitter)
  object = @@elements.find{|e|e.is_a?(Twitter::Tweet) && e.id == object.id}
  raise TweetNotFound if object.nil?
  super(object, twitter)
end

Public Instance Methods

color() click to toggle source
# File lib/flumtter/app/plugins/timeline/deleted_tweet.rb, line 14
def color
  Setting.dig(:color, :timeline, :deletedtweet) || :white
end
header() click to toggle source
# File lib/flumtter/app/plugins/timeline/deleted_tweet.rb, line 18
def header
  "DELETED ".ljust(Terminal.x, ?-)
end