Class: Wellness::Services::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/wellness/services/base.rb

Overview

Author:

  • Matthew A. Johnston

Direct Known Subclasses

PostgresService, RedisService, SidekiqService

Class Method Summary collapse

Instance Method Summary collapse

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

.dependencyObject

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

#callObject



15
16
17
18
19
# File 'lib/wellness/services/base.rb', line 15

def call
  {
    'status' => 'HEALTHY'
  }
end