Class: Glib::JsonCrawler::DialogsAlert

Inherits:
ActionCrawler show all
Defined in:
lib/glib/json_crawler/action_crawlers/dialogs_alert.rb

Instance Method Summary collapse

Methods inherited from ActionCrawler

#click, #crawl, #perform

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 (message = args['message'])
    http.router.log action, message

    if (on_close = args.fetch('onClose', nil))
      perform(on_close)
    end
  end
end