Class: Miam::DSL::Context::User
- Inherits:
-
Object
- Object
- Miam::DSL::Context::User
- Includes:
- TemplateHelper
- Defined in:
- lib/miam/dsl/context/user.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, &block) ⇒ User
constructor
A new instance of User.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, &block) ⇒ User
Returns a new instance of User.
4 5 6 7 8 9 |
# File 'lib/miam/dsl/context/user.rb', line 4 def initialize(context, name, &block) @user_name = name @context = context.merge(:user_name => name) @result = {:groups => [], :policies => {}, :attached_managed_policies => []} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/miam/dsl/context/user.rb', line 11 def result @result end |