Class: Cadenya::Types::ToolSpec_Config_Bare
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSpec_Config_Bare
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#bare ⇒ Object
readonly
Returns the value of attribute bare.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, bare: nil) ⇒ ToolSpec_Config_Bare
constructor
A new instance of ToolSpec_Config_Bare.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, bare: nil) ⇒ ToolSpec_Config_Bare
Returns a new instance of ToolSpec_Config_Bare.
8527 8528 8529 8530 |
# File 'lib/cadenya/types.rb', line 8527 def initialize(type: nil, bare: nil) @type = type @bare = end |
Instance Attribute Details
#bare ⇒ Object (readonly)
Returns the value of attribute bare.
8525 8526 8527 |
# File 'lib/cadenya/types.rb', line 8525 def @bare end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8525 8526 8527 |
# File 'lib/cadenya/types.rb', line 8525 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8532 8533 8534 8535 8536 8537 |
# File 'lib/cadenya/types.rb', line 8532 def self.from_json(data) new( type: data["type"], bare: data["bare"].nil? ? nil : Types::Config_Bare.from_json(data["bare"]), ) end |