Class: McpToolkit::Serializer::TargetRef

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

Overview

Minimal object satisfying the gem's association.serializer.model_class probe (ResourceSchema's target-resource resolution): carries the model an association resolves to. Pair with AssociationDescriptor when adapting a host serializer framework.

Instance Attribute Summary collapse

Instance Attribute Details

#model_classObject

Returns the value of attribute model_class

Returns:

  • (Object)

    the current value of model_class



7
8
9
# File 'lib/mcp_toolkit/serializer/target_ref.rb', line 7

def model_class
  @model_class
end