Class: WPAR::Security
- Inherits:
-
Object
- Object
- WPAR::Security
- Defined in:
- lib/wpars/security.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#privs ⇒ Object
readonly
Returns the value of attribute privs.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(params) ⇒ Security
constructor
A new instance of Security.
Constructor Details
#initialize(params) ⇒ Security
5 6 7 8 9 10 |
# File 'lib/wpars/security.rb', line 5 def initialize(params) @command = params[:command] @name = params[:name] @state = params[:state] @privs = params[:privs] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/wpars/security.rb', line 3 def name @name end |
#privs ⇒ Object (readonly)
Returns the value of attribute privs.
3 4 5 |
# File 'lib/wpars/security.rb', line 3 def privs @privs end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/wpars/security.rb', line 3 def state @state end |