Class: RubyPitaya::ServiceBase

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/core/service_base.rb

Direct Known Subclasses

RedisService

Instance Method Summary collapse

Instance Method Details

#clear_all_dataObject



17
18
19
20
21
22
# File 'lib/rubypitaya/core/service_base.rb', line 17

def clear_all_data
  environment_name = ENV.fetch('RUBYPITAYA_SERVER_ENVIRONMENT', 'development')
  is_test_environment = environment_name == 'test'

  on_clear_all_data if is_test_environment
end

#clientObject



13
14
15
# File 'lib/rubypitaya/core/service_base.rb', line 13

def client
  raise "Service client method not implemented"
end

#connectObject



5
6
7
# File 'lib/rubypitaya/core/service_base.rb', line 5

def connect
  raise "Service connect method not implemented"
end

#disconnectObject



9
10
11
# File 'lib/rubypitaya/core/service_base.rb', line 9

def disconnect
  raise "Service disconnect method not implemented"
end