Class: Jazari::Mcp::Actions::Action
- Inherits:
-
Data
- Object
- Data
- Jazari::Mcp::Actions::Action
- Defined in:
- lib/jazari/mcp/actions.rb
Instance Attribute Summary collapse
-
#confirm ⇒ Object
readonly
Returns the value of attribute confirm.
-
#effect ⇒ Object
readonly
Returns the value of attribute effect.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
Instance Attribute Details
#confirm ⇒ Object (readonly)
Returns the value of attribute confirm
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def confirm @confirm end |
#effect ⇒ Object (readonly)
Returns the value of attribute effect
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def effect @effect end |
#name ⇒ Object (readonly)
Returns the value of attribute name
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def params @params end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def scope @scope end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary
43 44 45 |
# File 'lib/jazari/mcp/actions.rb', line 43 def summary @summary end |
Instance Method Details
#confirm? ⇒ Boolean
45 |
# File 'lib/jazari/mcp/actions.rb', line 45 def confirm? = confirm == true |
#read? ⇒ Boolean
44 |
# File 'lib/jazari/mcp/actions.rb', line 44 def read? = scope == :read |
#required ⇒ Object
46 |
# File 'lib/jazari/mcp/actions.rb', line 46 def required = REQUIRED_ARGUMENTS.fetch(name) |
#to_h ⇒ Object
47 48 |
# File 'lib/jazari/mcp/actions.rb', line 47 def to_h = { name: name, scope: scope, effect: effect, summary: summary, params: params, confirm: confirm } |