Class: Flumtter::TimeLine::Quote

Inherits:
Event
  • Object
show all
Defined in:
lib/flumtter/app/plugins/timeline/tweet.rb

Instance Method Summary collapse

Methods inherited from Event

#header

Methods inherited from Base

[], #initialize, #to_s

Methods included from Util

#command_value_regexp, #dialog_for_index, #error, #error_handler, #id2obj, #if_tweet, #index_regexp, #index_with_dialog, #logger, #on_event, #parse_index, #parse_time, #sarastire, #sarastire_user, #screen_name_regexp

Constructor Details

This class inherits a constructor from Flumtter::TimeLine::Base

Instance Method Details

#colorObject



46
47
48
# File 'lib/flumtter/app/plugins/timeline/tweet.rb', line 46

def color
  Setting.dig(:color, :timeline, :quote) || :white
end

#infoObject



42
43
44
# File 'lib/flumtter/app/plugins/timeline/tweet.rb', line 42

def info
  @object.quoted_status.retweet_count
end

#source_userObject



38
39
40
# File 'lib/flumtter/app/plugins/timeline/tweet.rb', line 38

def source_user
  @object.user.screen_name
end