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.
870 871 872 873 874 875 876 |
# File 'lib/claude_agent_sdk/types.rb', line 870 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.
868 869 870 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def description @description end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
868 869 870 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def mime_type @mime_type end |
#name ⇒ Object
Returns the value of attribute name.
868 869 870 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def name @name end |
#reader ⇒ Object
Returns the value of attribute reader.
868 869 870 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def reader @reader end |
#uri ⇒ Object
Returns the value of attribute uri.
868 869 870 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def uri @uri end |