Class: IamUser
- Inherits:
-
Object
- Object
- IamUser
- Defined in:
- lib/model/cfn_model.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#logical_resource_id ⇒ Object
Returns the value of attribute logical_resource_id.
Instance Method Summary collapse
- #add_group(group) ⇒ Object
-
#initialize ⇒ IamUser
constructor
A new instance of IamUser.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ IamUser
Returns a new instance of IamUser.
170 171 172 |
# File 'lib/model/cfn_model.rb', line 170 def initialize @groups = [] end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
168 169 170 |
# File 'lib/model/cfn_model.rb', line 168 def groups @groups end |
#logical_resource_id ⇒ Object
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_s ⇒ Object
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 |