Class: ClaudeAgentSDK::UnknownBlock
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Generic content block for types the SDK doesn’t explicitly handle (e.g., “document”, “image”). Preserves the raw hash data for forward compatibility with newer CLI versions.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#type ⇒ Object
Returns the value of attribute type.
Method Summary
Methods inherited from Type
#[], #[]=, from_hash, #initialize, #to_h, wrap
Constructor Details
This class inherits a constructor from ClaudeAgentSDK::Type
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
186 187 188 |
# File 'lib/claude_agent_sdk/types.rb', line 186 def data @data end |
#type ⇒ Object
Returns the value of attribute type.
186 187 188 |
# File 'lib/claude_agent_sdk/types.rb', line 186 def type @type end |