Class: RubyMCP::Requests::PromptsGet
Instance Attribute Summary collapse
Instance Method Summary
collapse
#id, #initialize, #method
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json.
2
3
4
|
# File 'lib/ruby_mcp/requests/prompts_get.rb', line 2
def json
@json
end
|
Instance Method Details
#allowed_in_lifecycle?(lifecycle) ⇒ Boolean
12
13
14
|
# File 'lib/ruby_mcp/requests/prompts_get.rb', line 12
def allowed_in_lifecycle?(lifecycle)
lifecycle.operation_phase?
end
|
#arguments ⇒ Object
8
9
10
|
# File 'lib/ruby_mcp/requests/prompts_get.rb', line 8
def arguments
@json.dig("params", "arguments").transform_keys(&:to_sym)
end
|
#name ⇒ Object
4
5
6
|
# File 'lib/ruby_mcp/requests/prompts_get.rb', line 4
def name
@json.dig("params", "name")
end
|