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.
169 170 171 |
# File 'lib/model/cfn_model.rb', line 169 def initialize @groups = [] end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
167 168 169 |
# File 'lib/model/cfn_model.rb', line 167 def groups @groups end |
#logical_resource_id ⇒ Object
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_s ⇒ Object
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 |