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.



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

def initialize
  @groups = []
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



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

def groups
  @groups
end

#logical_resource_idObject

Returns the value of attribute logical_resource_id.



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

def logical_resource_id
  @logical_resource_id
end

Instance Method Details

#add_group(group) ⇒ Object



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

def add_group(group)
  @groups << group
end

#to_sObject



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

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