Class: Flumtter::TimeLine::FavBase
- Inherits:
-
Event
- Object
- Base
- Event
- Flumtter::TimeLine::FavBase
show all
- Defined in:
- lib/flumtter/app/plugins/timeline/fav.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
Instance Method Details
#body ⇒ Object
22
23
24
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 22
def body
@object.target_object.text.nl
end
|
#created_at ⇒ Object
18
19
20
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 18
def created_at
parse_time(@object.target_object.created_at)
end
|
26
27
28
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 26
def
"#{created_at}".ljust(Terminal.x, nil, @object.target_object.via)
end
|
#info ⇒ Object
10
11
12
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 10
def info
@object.target_object.favorite_count
end
|
#source_user ⇒ Object
6
7
8
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 6
def source_user
@object.source.screen_name
end
|
#user ⇒ Object
14
15
16
|
# File 'lib/flumtter/app/plugins/timeline/fav.rb', line 14
def user
"#{@object.target_object.user.name} (@#{@object.target_object.user.screen_name})"
end
|