Class: Cadenya::Types::Config_MCP
- Inherits:
-
Object
- Object
- Cadenya::Types::Config_MCP
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#annotations ⇒ Object
readonly
Returns the value of attribute annotations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(annotations: nil) ⇒ Config_MCP
constructor
A new instance of Config_MCP.
- #to_h ⇒ Object
Constructor Details
#initialize(annotations: nil) ⇒ Config_MCP
Returns a new instance of Config_MCP.
1309 1310 1311 |
# File 'lib/cadenya/types.rb', line 1309 def initialize(annotations: nil) @annotations = annotations end |
Instance Attribute Details
#annotations ⇒ Object (readonly)
Returns the value of attribute annotations.
1307 1308 1309 |
# File 'lib/cadenya/types.rb', line 1307 def annotations @annotations end |
Class Method Details
.from_json(data) ⇒ Object
1313 1314 1315 1316 1317 |
# File 'lib/cadenya/types.rb', line 1313 def self.from_json(data) new( annotations: data["annotations"].nil? ? nil : Types::MCP_Annotations.from_json(data["annotations"]), ) end |