Class: RubyLLM::MCP::Native::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_llm/mcp/native/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject (readonly)

Returns the value of attribute params.



7
8
9
# File 'lib/ruby_llm/mcp/native/notification.rb', line 7

def params
  @params
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/ruby_llm/mcp/native/notification.rb', line 7

def type
  @type
end