Class: RubyLLM::MCP::Native::Notification
- Inherits:
-
Object
- Object
- RubyLLM::MCP::Native::Notification
- Defined in:
- lib/ruby_llm/mcp/native/notification.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(response) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(response) ⇒ Notification
Returns a new instance of Notification.
9 10 11 12 |
# File 'lib/ruby_llm/mcp/native/notification.rb', line 9 def initialize(response) @type = response["method"] @params = response["params"] end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/ruby_llm/mcp/native/notification.rb', line 7 def params @params end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/ruby_llm/mcp/native/notification.rb', line 7 def type @type end |