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.



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

def initialize
  @groups = []
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



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

def groups
  @groups
end

#logical_resource_idObject

Returns the value of attribute logical_resource_id.



167
168
169
# File 'lib/model/cfn_model.rb', line 167

def logical_resource_id
  @logical_resource_id
end

Instance Method Details

#add_group(group) ⇒ Object



174
175
176
# File 'lib/model/cfn_model.rb', line 174

def add_group(group)
  @groups << group
end

#to_sObject



178
179
180
181
182
183
184
185
# File 'lib/model/cfn_model.rb', line 178

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