Method: Harbor1Client::UserGroup#initialize
- Defined in:
- lib/harbor1_client/models/user_group.rb
#initialize(attributes = {}) ⇒ UserGroup
Initializes the object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/harbor1_client/models/user_group.rb', line 51 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?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'group_name') self.group_name = attributes[:'group_name'] end if attributes.has_key?(:'group_type') self.group_type = attributes[:'group_type'] end if attributes.has_key?(:'ldap_group_dn') self.ldap_group_dn = attributes[:'ldap_group_dn'] end end |