Class: Proctor::Manager
- Inherits:
-
Object
- Object
- Proctor::Manager
- Includes:
- Util::Helpers
- Defined in:
- lib/proctor/manager.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, data) ⇒ Manager
constructor
A new instance of Manager.
Methods included from Util::Helpers
Constructor Details
#initialize(name, data) ⇒ Manager
Returns a new instance of Manager.
10 11 12 13 14 15 |
# File 'lib/proctor/manager.rb', line 10 def initialize(name, data) @name = name @data = data @handle = md5_handle(name) validate_required_manager_fields(data) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/proctor/manager.rb', line 8 def data @data end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
8 9 10 |
# File 'lib/proctor/manager.rb', line 8 def handle @handle end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/proctor/manager.rb', line 8 def name @name end |