Class: McpToolkit::Serializer::AssociationDescriptor
- Inherits:
-
Struct
- Object
- Struct
- McpToolkit::Serializer::AssociationDescriptor
- Defined in:
- lib/mcp_toolkit/serializer/association_descriptor.rb
Overview
The association shape the gem reads off a serializer's
declared_associations (ResourceSchema's relationship entries,
FieldSelection's valid fields names). A host adapting its OWN serializer
framework builds these rather than re-deriving the duck-type by hand:
links_key / type / polymorphic / name, plus an optional serializer
responding to model_class (see TargetRef) so the target resource resolves.
Instance Attribute Summary collapse
-
#links_key ⇒ Object
Returns the value of attribute links_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#polymorphic ⇒ Object
Returns the value of attribute polymorphic.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#links_key ⇒ Object
Returns the value of attribute links_key
9 10 11 |
# File 'lib/mcp_toolkit/serializer/association_descriptor.rb', line 9 def links_key @links_key end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/mcp_toolkit/serializer/association_descriptor.rb', line 9 def name @name end |
#polymorphic ⇒ Object
Returns the value of attribute polymorphic
9 10 11 |
# File 'lib/mcp_toolkit/serializer/association_descriptor.rb', line 9 def polymorphic @polymorphic end |
#serializer ⇒ Object
Returns the value of attribute serializer
9 10 11 |
# File 'lib/mcp_toolkit/serializer/association_descriptor.rb', line 9 def serializer @serializer end |
#type ⇒ Object
Returns the value of attribute type
9 10 11 |
# File 'lib/mcp_toolkit/serializer/association_descriptor.rb', line 9 def type @type end |