Class: McpToolkit::Serializer::Base::Association

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp_toolkit/serializer/base.rb

Overview

---- class-level DSL -------------------------------------------------

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#foreign_keyObject

Returns the value of attribute foreign_key

Returns:

  • (Object)

    the current value of foreign_key



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def foreign_key
  @foreign_key
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def name
  @name
end

#polymorphicObject

Returns the value of attribute polymorphic

Returns:

  • (Object)

    the current value of polymorphic



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def polymorphic
  @polymorphic
end

#serializerObject

Returns the value of attribute serializer

Returns:

  • (Object)

    the current value of serializer



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def serializer
  @serializer
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



67
68
69
# File 'lib/mcp_toolkit/serializer/base.rb', line 67

def type
  @type
end

Instance Method Details

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