Class: Tep::MCP::ResourceContent
- Inherits:
-
Object
- Object
- Tep::MCP::ResourceContent
- Defined in:
- lib/tep/mcp.rb
Overview
Resource read outcome – a (uri, mime, text) triple wrapped in the resources/read response envelope. Kept as a simple value class (parallel to Result) so spinel tracks the slot types cleanly across module boundaries.
Instance Attribute Summary collapse
-
#mime ⇒ Object
Returns the value of attribute mime.
-
#text ⇒ Object
Returns the value of attribute text.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize ⇒ ResourceContent
constructor
A new instance of ResourceContent.
Constructor Details
#initialize ⇒ ResourceContent
Returns a new instance of ResourceContent.
64 65 66 67 68 |
# File 'lib/tep/mcp.rb', line 64 def initialize @uri = "" @mime = "text/plain" @text = "" end |
Instance Attribute Details
#mime ⇒ Object
Returns the value of attribute mime.
62 63 64 |
# File 'lib/tep/mcp.rb', line 62 def mime @mime end |
#text ⇒ Object
Returns the value of attribute text.
62 63 64 |
# File 'lib/tep/mcp.rb', line 62 def text @text end |
#uri ⇒ Object
Returns the value of attribute uri.
62 63 64 |
# File 'lib/tep/mcp.rb', line 62 def uri @uri end |