Class: Proctor::Manager

Inherits:
Object
  • Object
show all
Includes:
Util::Helpers
Defined in:
lib/proctor/manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Helpers

#md5_handle

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

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/proctor/manager.rb', line 8

def data
  @data
end

#handleObject (readonly)

Returns the value of attribute handle.



8
9
10
# File 'lib/proctor/manager.rb', line 8

def handle
  @handle
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/proctor/manager.rb', line 8

def name
  @name
end