Class: IamUser

Inherits:
Object
  • Object
show all
Defined in:
lib/model/cfn_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIamUser

Returns a new instance of IamUser.



165
166
167
# File 'lib/model/cfn_model.rb', line 165

def initialize
  @groups = []
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



163
164
165
# File 'lib/model/cfn_model.rb', line 163

def groups
  @groups
end

#logical_resource_idObject

Returns the value of attribute logical_resource_id.



162
163
164
# File 'lib/model/cfn_model.rb', line 162

def logical_resource_id
  @logical_resource_id
end

Instance Method Details

#add_group(group) ⇒ Object



169
170
171
# File 'lib/model/cfn_model.rb', line 169

def add_group(group)
  @groups << group
end

#to_sObject



173
174
175
176
177
178
179
180
# File 'lib/model/cfn_model.rb', line 173

def to_s
  <<-END
  {
    logical_resource_id: #{@logical_resource_id}
    groups: #{@groups}
  }
  END
end