Class: Cadenya::Types::ToolSetSpec
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetSpec
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#overlays ⇒ Object
readonly
Returns the value of attribute overlays.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, adapter: nil, overlays: nil) ⇒ ToolSetSpec
constructor
A new instance of ToolSetSpec.
- #to_h ⇒ Object
Constructor Details
#initialize(description: nil, adapter: nil, overlays: nil) ⇒ ToolSetSpec
Returns a new instance of ToolSetSpec.
6343 6344 6345 6346 6347 |
# File 'lib/cadenya/types.rb', line 6343 def initialize(description: nil, adapter: nil, overlays: nil) @description = description @adapter = adapter @overlays = end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
6341 6342 6343 |
# File 'lib/cadenya/types.rb', line 6341 def adapter @adapter end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6341 6342 6343 |
# File 'lib/cadenya/types.rb', line 6341 def description @description end |
#overlays ⇒ Object (readonly)
Returns the value of attribute overlays.
6341 6342 6343 |
# File 'lib/cadenya/types.rb', line 6341 def @overlays end |
Class Method Details
.from_json(data) ⇒ Object
6349 6350 6351 6352 6353 6354 6355 |
# File 'lib/cadenya/types.rb', line 6349 def self.from_json(data) new( description: data["description"], adapter: data["adapter"].nil? ? nil : Types.decode_ToolSetAdapter(data["adapter"]), overlays: data["overlays"].nil? ? nil : (data["overlays"]).map { |item| Types::ToolOverlay.from_json(item) }, ) end |