Class: Glib::JsonCrawler::ActionHttp
- Inherits:
-
ActionCrawler
- Object
- ActionCrawler
- Glib::JsonCrawler::ActionHttp
- Defined in:
- lib/glib/json_crawler/action_crawlers/action_http.rb
Instance Method Summary collapse
-
#initialize(method, http, args, controller) ⇒ ActionHttp
constructor
A new instance of ActionHttp.
Methods inherited from ActionCrawler
Constructor Details
#initialize(method, http, args, controller) ⇒ ActionHttp
Returns a new instance of ActionHttp.
4 5 6 7 8 9 |
# File 'lib/glib/json_crawler/action_crawlers/action_http.rb', line 4 def initialize(method, http, args, controller) @http = http json = @http.send(method, args['url'], controller, args.fetch('formData', {})) @http.router.http_actions.add([args['action'], args['url'], args.fetch('formData', {})]) perform(json['onResponse']) end |