Class: Cadenya::Types::ToolSet
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSet
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, spec: nil, info: nil, state: nil) ⇒ ToolSet
constructor
A new instance of ToolSet.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, spec: nil, info: nil, state: nil) ⇒ ToolSet
Returns a new instance of ToolSet.
5935 5936 5937 5938 5939 5940 |
# File 'lib/cadenya/types.rb', line 5935 def initialize(metadata: nil, spec: nil, info: nil, state: nil) @metadata = @spec = spec @info = info @state = state end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
5933 5934 5935 |
# File 'lib/cadenya/types.rb', line 5933 def info @info end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5933 5934 5935 |
# File 'lib/cadenya/types.rb', line 5933 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
5933 5934 5935 |
# File 'lib/cadenya/types.rb', line 5933 def spec @spec end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5933 5934 5935 |
# File 'lib/cadenya/types.rb', line 5933 def state @state end |
Class Method Details
.from_json(data) ⇒ Object
5942 5943 5944 5945 5946 5947 5948 5949 |
# File 'lib/cadenya/types.rb', line 5942 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::ResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::ToolSetSpec.from_json(data["spec"]), info: data["info"].nil? ? nil : Types::ToolSetInfo.from_json(data["info"]), state: data["state"], ) end |