Class: Cadenya::Types::CallableTool_CadenyaProvidedTool
- Inherits:
-
Object
- Object
- Cadenya::Types::CallableTool_CadenyaProvidedTool
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#cadenya_provided_tool ⇒ Object
readonly
Returns the value of attribute cadenya_provided_tool.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, cadenya_provided_tool: nil) ⇒ CallableTool_CadenyaProvidedTool
constructor
A new instance of CallableTool_CadenyaProvidedTool.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, cadenya_provided_tool: nil) ⇒ CallableTool_CadenyaProvidedTool
Returns a new instance of CallableTool_CadenyaProvidedTool.
9010 9011 9012 9013 |
# File 'lib/cadenya/types.rb', line 9010 def initialize(type: nil, cadenya_provided_tool: nil) @type = type @cadenya_provided_tool = cadenya_provided_tool end |
Instance Attribute Details
#cadenya_provided_tool ⇒ Object (readonly)
Returns the value of attribute cadenya_provided_tool.
9008 9009 9010 |
# File 'lib/cadenya/types.rb', line 9008 def cadenya_provided_tool @cadenya_provided_tool end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9008 9009 9010 |
# File 'lib/cadenya/types.rb', line 9008 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
9015 9016 9017 9018 9019 9020 |
# File 'lib/cadenya/types.rb', line 9015 def self.from_json(data) new( type: data["type"], cadenya_provided_tool: data["cadenyaProvidedTool"].nil? ? nil : Types::ResourceMetadata.from_json(data["cadenyaProvidedTool"]), ) end |