Class: ConsulApplicationSettings::Providers::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/consul_application_settings/providers/abstract.rb

Overview

Abstract class with basic functionality

Direct Known Subclasses

Consul, ConsulPreloaded, LocalStorage

Instance Method Summary collapse

Constructor Details

#initialize(base_path, config) ⇒ Abstract

Returns a new instance of Abstract.



5
6
7
8
# File 'lib/consul_application_settings/providers/abstract.rb', line 5

def initialize(base_path, config)
  @base_path = base_path
  @config = config
end

Instance Method Details

#get(_path) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/consul_application_settings/providers/abstract.rb', line 10

def get(_path)
  raise NotImplementedError
end