Class: ClaudeAgentSDK::SdkMcpResource
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SdkMcpResource
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SDK MCP Resource definition
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reader ⇒ Object
Returns the value of attribute reader.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri:, name:, description: nil, mime_type: nil, reader:) ⇒ SdkMcpResource
constructor
A new instance of SdkMcpResource.
Constructor Details
#initialize(uri:, name:, description: nil, mime_type: nil, reader:) ⇒ SdkMcpResource
Returns a new instance of SdkMcpResource.
1865 1866 1867 1868 1869 1870 1871 |
# File 'lib/claude_agent_sdk/types.rb', line 1865 def initialize(uri:, name:, description: nil, mime_type: nil, reader:) @uri = uri @name = name @description = description @mime_type = mime_type @reader = reader end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
1863 1864 1865 |
# File 'lib/claude_agent_sdk/types.rb', line 1863 def description @description end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
1863 1864 1865 |
# File 'lib/claude_agent_sdk/types.rb', line 1863 def mime_type @mime_type end |
#name ⇒ Object
Returns the value of attribute name.
1863 1864 1865 |
# File 'lib/claude_agent_sdk/types.rb', line 1863 def name @name end |
#reader ⇒ Object
Returns the value of attribute reader.
1863 1864 1865 |
# File 'lib/claude_agent_sdk/types.rb', line 1863 def reader @reader end |
#uri ⇒ Object
Returns the value of attribute uri.
1863 1864 1865 |
# File 'lib/claude_agent_sdk/types.rb', line 1863 def uri @uri end |