Class: Cadenya::Types::WorkspaceSpec
- Inherits:
-
Object
- Object
- Cadenya::Types::WorkspaceSpec
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil) ⇒ WorkspaceSpec
constructor
A new instance of WorkspaceSpec.
- #to_h ⇒ Object
Constructor Details
#initialize(description: nil) ⇒ WorkspaceSpec
Returns a new instance of WorkspaceSpec.
7656 7657 7658 |
# File 'lib/cadenya/types.rb', line 7656 def initialize(description: nil) @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
7654 7655 7656 |
# File 'lib/cadenya/types.rb', line 7654 def description @description end |
Class Method Details
.from_json(data) ⇒ Object
7660 7661 7662 7663 7664 |
# File 'lib/cadenya/types.rb', line 7660 def self.from_json(data) new( description: data["description"], ) end |