Class: Cadenya::Types::UpdateResourceMetadata
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateResourceMetadata
- 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) ⇒ UpdateResourceMetadata
constructor
A new instance of UpdateResourceMetadata.
- #to_h ⇒ Object
Constructor Details
#initialize(name: nil, external_id: nil, labels: nil) ⇒ UpdateResourceMetadata
Returns a new instance of UpdateResourceMetadata.
6829 6830 6831 6832 6833 |
# File 'lib/cadenya/types.rb', line 6829 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.
6827 6828 6829 |
# File 'lib/cadenya/types.rb', line 6827 def external_id @external_id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
6827 6828 6829 |
# File 'lib/cadenya/types.rb', line 6827 def labels @labels end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6827 6828 6829 |
# File 'lib/cadenya/types.rb', line 6827 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
6835 6836 6837 6838 6839 6840 6841 |
# File 'lib/cadenya/types.rb', line 6835 def self.from_json(data) new( name: data["name"], external_id: data["externalId"], labels: data["labels"], ) end |