Class: Flumtter::TimeLine::DirectMessage
- Inherits:
-
Base
- Object
- Base
- Flumtter::TimeLine::DirectMessage
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, #logger, #on_event, #parse_index, #parse_time, #sarastire, #sarastire_user, #screen_name_regexp
Instance Method Details
#color ⇒ Object
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
created_at
end
|
14
15
16
|
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 14
def
"#{index} ".ljust(Terminal.x, ?-, "@#{@object.sender.screen_name} => @#{@object.recipient.screen_name}")
end
|
#user ⇒ Object
10
11
12
|
# File 'lib/flumtter/app/plugins/timeline/dm.rb', line 10
def user
"#{@object.sender.name} (@#{@object.sender.screen_name})"
end
|