Class: Miam::DSL::Context::User
- Inherits:
-
Object
- Object
- Miam::DSL::Context::User
- 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(name, &block) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(name, &block) ⇒ User
Returns a new instance of User.
2 3 4 5 6 |
# File 'lib/miam/dsl/context/user.rb', line 2 def initialize(name, &block) @user_name = name @result = {:groups => [], :policies => {}} instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/miam/dsl/context/user.rb', line 8 def result @result end |