Class: McpToolkit::Serializer::Base::Association
- Inherits:
-
Struct
- Object
- Struct
- McpToolkit::Serializer::Base::Association
- Defined in:
- lib/mcp_toolkit/serializer/base.rb
Overview
---- class-level DSL -------------------------------------------------
Instance Attribute Summary collapse
-
#foreign_key ⇒ Object
Returns the value of attribute foreign_key.
-
#key ⇒ Object
Returns the value of attribute 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 Method Summary collapse
-
#links_key ⇒ Object
Public-facing key used inside the
linkshash.
Instance Attribute Details
#foreign_key ⇒ Object
Returns the value of attribute foreign_key
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def foreign_key @foreign_key end |
#key ⇒ Object
Returns the value of attribute key
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def key @key end |
#name ⇒ Object
Returns the value of attribute name
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def name @name end |
#polymorphic ⇒ Object
Returns the value of attribute polymorphic
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def polymorphic @polymorphic end |
#serializer ⇒ Object
Returns the value of attribute serializer
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def serializer @serializer end |
#type ⇒ Object
Returns the value of attribute type
67 68 69 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 67 def type @type end |
Instance Method Details
#links_key ⇒ Object
Public-facing key used inside the links hash.
69 70 71 |
# File 'lib/mcp_toolkit/serializer/base.rb', line 69 def links_key (key || name).to_s end |