Class: Rddd::Services::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/rddd/services/service.rb

Direct Known Subclasses

RemoteService

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Service

Returns a new instance of Service.



19
20
21
# File 'lib/rddd/services/service.rb', line 19

def initialize(attributes = {})
  @attributes = attributes
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/rddd/services/service.rb', line 27

def execute
  raise NotImplementedError  
end

#valid?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/rddd/services/service.rb', line 23

def valid?
  true
end