Class: McpToolkit::Resource::CustomFilter
- Inherits:
-
Struct
- Object
- Struct
- McpToolkit::Resource::CustomFilter
- Defined in:
- lib/mcp_toolkit/resource.rb
Overview
A resource-specific ("custom") filter: a request-facing key whose value is
applied to the relation by an arbitrary host-supplied block, rather than the
generic equality/operator allowlist. The block is api-agnostic — it receives
the already-scoped relation and the raw request value and returns a narrowed
relation — so a host can express a relational or otherwise non-column filter
(e.g. "only rows whose associated booking is in this rental") without the gem
knowing anything about the query. type/description are surfaced by
resource_schema so a client can discover the filter.
Instance Attribute Summary collapse
-
#applier ⇒ Object
Returns the value of attribute applier.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#applier ⇒ Object
Returns the value of attribute applier
27 28 29 |
# File 'lib/mcp_toolkit/resource.rb', line 27 def applier @applier end |
#description ⇒ Object
Returns the value of attribute description
27 28 29 |
# File 'lib/mcp_toolkit/resource.rb', line 27 def description @description end |
#name ⇒ Object
Returns the value of attribute name
27 28 29 |
# File 'lib/mcp_toolkit/resource.rb', line 27 def name @name end |
#type ⇒ Object
Returns the value of attribute type
27 28 29 |
# File 'lib/mcp_toolkit/resource.rb', line 27 def type @type end |