Method: Harbor2Client::RetentionMetadata#initialize
- Defined in:
- lib/harbor2_client/models/retention_metadata.rb
#initialize(attributes = {}) ⇒ RetentionMetadata
Initializes the object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/harbor2_client/models/retention_metadata.rb', line 47 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'templates') if (value = attributes[:'templates']).is_a?(Array) self.templates = value end end if attributes.has_key?(:'scope_selectors') if (value = attributes[:'scope_selectors']).is_a?(Array) self.scope_selectors = value end end if attributes.has_key?(:'tag_selectors') if (value = attributes[:'tag_selectors']).is_a?(Array) self.tag_selectors = value end end end |