Class: InternetHakai::SetVarAction
- Inherits:
-
RequestAction
- Object
- BaseAction
- RequestAction
- InternetHakai::SetVarAction
- Defined in:
- lib/internethakai/action.rb
Overview
変数をセットするアクション
Constant Summary
Constants inherited from RequestAction
RequestAction::ERROR_MAX, RequestAction::REDIRECT_MAX
Instance Attribute Summary
Attributes inherited from BaseAction
Instance Method Summary collapse
Methods inherited from RequestAction
#check_scan, #check_size, #free, #get_client, #get_default, #http_request, #init, #initialize, #log, #mkclient, #on_complete, #on_error, #on_free, #on_redirect, #run, #set_client, #set_wait, #to_s
Methods inherited from BaseAction
#dispatch_next, #free, #get_default, #has_on_complete?, #initialize, #quit, #run, #set_on_complete
Constructor Details
This class inherits a constructor from InternetHakai::RequestAction
Instance Method Details
#on_response(response) ⇒ Object
300 301 302 303 304 305 306 |
# File 'lib/internethakai/action.rb', line 300 def on_response response return if response.nil? || response.status != 200 if @opt['key'] @client_handler.set_var(@opt['key'], response.body.chomp) @debug_msgs << "SET_VAR:::#{@opt['key']}: #{response.body.chomp}\n" end end |