Module: Duraflame::Translator
Instance Method Summary collapse
- #enter_message(message) ⇒ Object
- #kick_message(message) ⇒ Object
- #paste_message ⇒ Object
- #sound_message ⇒ Object
- #text_message(message) ⇒ Object
- #timestamp_message ⇒ Object
- #tweet_message ⇒ Object
- #upload_message ⇒ Object
Instance Method Details
#enter_message(message) ⇒ Object
11 12 13 14 |
# File 'lib/duraflame/translator.rb', line 11 def () time = ['created_at'].split(' ')[1].split(':')[0..1].join(':') "#{time} <#{['user_id']}> has joined" end |
#kick_message(message) ⇒ Object
16 17 18 19 |
# File 'lib/duraflame/translator.rb', line 16 def () time = ['created_at'].split(' ')[1].split(':')[0..1].join(':') "#{time} <#{['user_id']}> has left" end |
#paste_message ⇒ Object
30 31 |
# File 'lib/duraflame/translator.rb', line 30 def (*) end |
#sound_message ⇒ Object
24 25 |
# File 'lib/duraflame/translator.rb', line 24 def (*) end |
#text_message(message) ⇒ Object
5 6 7 8 9 |
# File 'lib/duraflame/translator.rb', line 5 def () date, user, body = .values_at('created_at', 'user_id', 'body') time = date.split(' ')[1].split(':')[0..1].join(':') "#{time} <#{user}> #{body}" end |
#timestamp_message ⇒ Object
33 34 |
# File 'lib/duraflame/translator.rb', line 33 def (*) end |
#tweet_message ⇒ Object
27 28 |
# File 'lib/duraflame/translator.rb', line 27 def (*) end |
#upload_message ⇒ Object
21 22 |
# File 'lib/duraflame/translator.rb', line 21 def (*) end |