Class: ClaudeAgentSDK::AsyncHookJSONOutput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Async hook JSON output
Instance Attribute Summary collapse
-
#async ⇒ Object
Returns the value of attribute async.
-
#async_timeout ⇒ Object
Returns the value of attribute async_timeout.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AsyncHookJSONOutput
constructor
A new instance of AsyncHookJSONOutput.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ AsyncHookJSONOutput
Returns a new instance of AsyncHookJSONOutput.
1112 1113 1114 1115 |
# File 'lib/claude_agent_sdk/types.rb', line 1112 def initialize(attributes = {}) super @async = true if @async.nil? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#async ⇒ Object
Returns the value of attribute async.
1110 1111 1112 |
# File 'lib/claude_agent_sdk/types.rb', line 1110 def async @async end |
#async_timeout ⇒ Object
Returns the value of attribute async_timeout.
1110 1111 1112 |
# File 'lib/claude_agent_sdk/types.rb', line 1110 def async_timeout @async_timeout end |
Instance Method Details
#to_h ⇒ Object
1117 1118 1119 1120 1121 |
# File 'lib/claude_agent_sdk/types.rb', line 1117 def to_h result = { async: @async } result[:asyncTimeout] = @async_timeout if @async_timeout result end |