Class: Cadenya::Types::CreateOperationMetadata
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateOperationMetadata
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(labels: nil, external_id: nil) ⇒ CreateOperationMetadata
constructor
A new instance of CreateOperationMetadata.
- #to_h ⇒ Object
Constructor Details
#initialize(labels: nil, external_id: nil) ⇒ CreateOperationMetadata
Returns a new instance of CreateOperationMetadata.
1779 1780 1781 1782 |
# File 'lib/cadenya/types.rb', line 1779 def initialize(labels: nil, external_id: nil) @labels = labels @external_id = external_id end |
Instance Attribute Details
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
1777 1778 1779 |
# File 'lib/cadenya/types.rb', line 1777 def external_id @external_id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
1777 1778 1779 |
# File 'lib/cadenya/types.rb', line 1777 def labels @labels end |
Class Method Details
.from_json(data) ⇒ Object
1784 1785 1786 1787 1788 1789 |
# File 'lib/cadenya/types.rb', line 1784 def self.from_json(data) new( labels: data["labels"], external_id: data["externalId"], ) end |