Class: Cadenya::Types::CreateResourceMetadata
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateResourceMetadata
- 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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, external_id: nil, labels: nil) ⇒ CreateResourceMetadata
constructor
A new instance of CreateResourceMetadata.
- #to_h ⇒ Object
Constructor Details
#initialize(name: nil, external_id: nil, labels: nil) ⇒ CreateResourceMetadata
Returns a new instance of CreateResourceMetadata.
1802 1803 1804 1805 1806 |
# File 'lib/cadenya/types.rb', line 1802 def initialize(name: nil, external_id: nil, labels: nil) @name = name @external_id = external_id @labels = labels end |
Instance Attribute Details
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
1800 1801 1802 |
# File 'lib/cadenya/types.rb', line 1800 def external_id @external_id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
1800 1801 1802 |
# File 'lib/cadenya/types.rb', line 1800 def labels @labels end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1800 1801 1802 |
# File 'lib/cadenya/types.rb', line 1800 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/cadenya/types.rb', line 1808 def self.from_json(data) new( name: data["name"], external_id: data["externalId"], labels: data["labels"], ) end |