Class: Rddd::Services::Service
- Inherits:
-
Object
- Object
- Rddd::Services::Service
- Defined in:
- lib/rddd/services/service.rb
Direct Known Subclasses
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(attributes = {}) ⇒ Service
constructor
A new instance of Service.
- #valid? ⇒ Boolean
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
#execute ⇒ Object
27 28 29 |
# File 'lib/rddd/services/service.rb', line 27 def execute raise NotImplementedError end |
#valid? ⇒ Boolean
23 24 25 |
# File 'lib/rddd/services/service.rb', line 23 def valid? true end |