Class: Proctor::Service

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Helpers

#md5_handle

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

#dataObject (readonly)

Returns the value of attribute data.



9
10
11
# File 'lib/proctor/service.rb', line 9

def data
  @data
end

#handleObject (readonly)

Returns the value of attribute handle.



9
10
11
# File 'lib/proctor/service.rb', line 9

def handle
  @handle
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/proctor/service.rb', line 9

def name
  @name
end