Class: Cadenya::Types::UpdateAccountResourceMetadata
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateAccountResourceMetadata
- 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) ⇒ UpdateAccountResourceMetadata
constructor
A new instance of UpdateAccountResourceMetadata.
- #to_h ⇒ Object
Constructor Details
#initialize(name: nil, external_id: nil, labels: nil) ⇒ UpdateAccountResourceMetadata
Returns a new instance of UpdateAccountResourceMetadata.
6602 6603 6604 6605 6606 |
# File 'lib/cadenya/types.rb', line 6602 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.
6600 6601 6602 |
# File 'lib/cadenya/types.rb', line 6600 def external_id @external_id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
6600 6601 6602 |
# File 'lib/cadenya/types.rb', line 6600 def labels @labels end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6600 6601 6602 |
# File 'lib/cadenya/types.rb', line 6600 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
6608 6609 6610 6611 6612 6613 6614 |
# File 'lib/cadenya/types.rb', line 6608 def self.from_json(data) new( name: data["name"], external_id: data["externalId"], labels: data["labels"], ) end |