Class: Glib::JsonCrawler::DialogsAlert
- Inherits:
-
ActionCrawler
- Object
- ActionCrawler
- Glib::JsonCrawler::DialogsAlert
- Defined in:
- lib/glib/json_crawler/action_crawlers/dialogs_alert.rb
Instance Method Summary collapse
-
#initialize(http, args, action) ⇒ DialogsAlert
constructor
A new instance of DialogsAlert.
Methods inherited from ActionCrawler
Constructor Details
#initialize(http, args, action) ⇒ DialogsAlert
Returns a new instance of DialogsAlert.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/glib/json_crawler/action_crawlers/dialogs_alert.rb', line 4 def initialize(http, args, action) super(http) if ( = args['message']) http.router.log action, if (on_close = args.fetch('onClose', nil)) perform(on_close) end end end |