Class: Wellness::Services::Base
- Inherits:
-
Object
- Object
- Wellness::Services::Base
- Defined in:
- lib/wellness/services/base.rb
Overview
Direct Known Subclasses
Class Method Summary collapse
-
.dependency ⇒ Object
Load dependencies when the class is loaded.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args = {}) ⇒ Base
Returns a new instance of Base.
12 13 |
# File 'lib/wellness/services/base.rb', line 12 def initialize(args={}) end |
Class Method Details
.dependency ⇒ Object
Load dependencies when the class is loaded. This makes putting requires at the top of the file unnecessary. It plays nicely with the auto loader.
8 9 10 |
# File 'lib/wellness/services/base.rb', line 8 def self.dependency yield if block_given? end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 |
# File 'lib/wellness/services/base.rb', line 15 def call { 'status' => 'HEALTHY' } end |