Class: Cadenya::Types::VariationAssignment_ToolSet
- Inherits:
-
Object
- Object
- Cadenya::Types::VariationAssignment_ToolSet
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tool_set ⇒ Object
readonly
Returns the value of attribute tool_set.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, tool_set: nil, id: nil) ⇒ VariationAssignment_ToolSet
constructor
A new instance of VariationAssignment_ToolSet.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, tool_set: nil, id: nil) ⇒ VariationAssignment_ToolSet
Returns a new instance of VariationAssignment_ToolSet.
7757 7758 7759 7760 7761 |
# File 'lib/cadenya/types.rb', line 7757 def initialize(type: nil, tool_set: nil, id: nil) @type = type @tool_set = tool_set @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7755 7756 7757 |
# File 'lib/cadenya/types.rb', line 7755 def id @id end |
#tool_set ⇒ Object (readonly)
Returns the value of attribute tool_set.
7755 7756 7757 |
# File 'lib/cadenya/types.rb', line 7755 def tool_set @tool_set end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7755 7756 7757 |
# File 'lib/cadenya/types.rb', line 7755 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7763 7764 7765 7766 7767 7768 7769 |
# File 'lib/cadenya/types.rb', line 7763 def self.from_json(data) new( type: data["type"], tool_set: data["toolSet"].nil? ? nil : Types::BareMetadata.from_json(data["toolSet"]), id: data["id"], ) end |