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.
861 862 863 864 865 866 867 |
# File 'lib/claude_agent_sdk/types.rb', line 861 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.
859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 859 def description @description end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 859 def mime_type @mime_type end |
#name ⇒ Object
Returns the value of attribute name.
859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 859 def name @name end |
#reader ⇒ Object
Returns the value of attribute reader.
859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 859 def reader @reader end |
#uri ⇒ Object
Returns the value of attribute uri.
859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 859 def uri @uri end |