Class: Lita::Handlers::Hangout
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::Hangout
- Defined in:
- lib/lita/handlers/hangout.rb
Constant Summary collapse
- HANGOUT_PREFIX =
'https://plus.google.com/hangouts/_/'
Instance Method Summary collapse
Instance Method Details
#hangout(response) ⇒ Object
13 14 15 |
# File 'lib/lita/handlers/hangout.rb', line 13 def hangout(response) response.reply hangout_url(Time.now.to_i) end |
#hangout_me(response) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/lita/handlers/hangout.rb', line 17 def hangout_me(response) if response.match_data.size == 1 response.reply hangout_url(response.user.name) else response.reply hangout_url(response.match_data[1]) end end |