Class: Flumtter::TimeLine::DirectMessage

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

Instance Method Summary collapse

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, #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



6
7
8
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 6

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


18
19
20
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 18

def footer
  created_at
end

#headerObject



14
15
16
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 14

def header
  "#{index} ".ljust(Terminal.x, ?-, "@#{@object.sender.screen_name} => @#{@object.recipient.screen_name}")
end

#userObject



10
11
12
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 10

def user
  "#{@object.sender.name} (@#{@object.sender.screen_name})"
end