Class: Cadenya::Types::ToolSetAdapter_BareVariant
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_BareVariant
- 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) ⇒ ToolSetAdapter_BareVariant
constructor
A new instance of ToolSetAdapter_BareVariant.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, bare: nil) ⇒ ToolSetAdapter_BareVariant
Returns a new instance of ToolSetAdapter_BareVariant.
8016 8017 8018 8019 |
# File 'lib/cadenya/types.rb', line 8016 def initialize(type: nil, bare: nil) @type = type @bare = end |
Instance Attribute Details
#bare ⇒ Object (readonly)
Returns the value of attribute bare.
8014 8015 8016 |
# File 'lib/cadenya/types.rb', line 8014 def @bare end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8014 8015 8016 |
# File 'lib/cadenya/types.rb', line 8014 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8021 8022 8023 8024 8025 8026 |
# File 'lib/cadenya/types.rb', line 8021 def self.from_json(data) new( type: data["type"], bare: data["bare"].nil? ? nil : Types::ToolSetAdapter_Bare.from_json(data["bare"]), ) end |