Class: Proctor::Service
- Inherits:
-
Object
- Object
- Proctor::Service
- Includes:
- Util::Helpers
- Defined in:
- lib/proctor/service.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) ⇒ Service
constructor
A new instance of Service.
Methods included from Util::Helpers
Constructor Details
#initialize(name, data) ⇒ Service
Returns a new instance of Service.
11 12 13 14 15 16 |
# File 'lib/proctor/service.rb', line 11 def initialize(name, data) @name = name @data = data @handle = md5_handle(name) #validate_required_service_fields(data) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/proctor/service.rb', line 9 def data @data end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
9 10 11 |
# File 'lib/proctor/service.rb', line 9 def handle @handle end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/proctor/service.rb', line 9 def name @name end |