Class: Stoplight::DataStore::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/stoplight/data_store/base.rb

Overview

This class is abstract.

Direct Known Subclasses

Memory, Redis

Instance Method Summary collapse

Instance Method Details

#clear_failures(_light) ⇒ Array<Failure>

Parameters:

Returns:

Raises:

  • (NotImplementedError)

33
34
35
# File 'lib/stoplight/data_store/base.rb', line 33

def clear_failures(_light)
  raise NotImplementedError
end

#clear_state(_light) ⇒ String

Parameters:

Returns:

  • (String)

Raises:

  • (NotImplementedError)

52
53
54
# File 'lib/stoplight/data_store/base.rb', line 52

def clear_state(_light)
  raise NotImplementedError
end

#get_all(_light) ⇒ Array(Array<Failure>, String)

Parameters:

Returns:

Raises:

  • (NotImplementedError)

14
15
16
# File 'lib/stoplight/data_store/base.rb', line 14

def get_all(_light)
  raise NotImplementedError
end

#get_failures(_light) ⇒ Array<Failure>

Parameters:

Returns:

Raises:

  • (NotImplementedError)

20
21
22
# File 'lib/stoplight/data_store/base.rb', line 20

def get_failures(_light)
  raise NotImplementedError
end

#get_state(_light) ⇒ String

Parameters:

Returns:

  • (String)

Raises:

  • (NotImplementedError)

39
40
41
# File 'lib/stoplight/data_store/base.rb', line 39

def get_state(_light)
  raise NotImplementedError
end

#namesArray<String>

Returns:

  • (Array<String>)

Raises:

  • (NotImplementedError)

8
9
10
# File 'lib/stoplight/data_store/base.rb', line 8

def names
  raise NotImplementedError
end

#record_failure(_light, _failure) ⇒ Fixnum

Parameters:

Returns:

  • (Fixnum)

Raises:

  • (NotImplementedError)

27
28
29
# File 'lib/stoplight/data_store/base.rb', line 27

def record_failure(_light, _failure)
  raise NotImplementedError
end

#set_state(_light, _state) ⇒ String

Parameters:

  • _light (Light)
  • _state (String)

Returns:

  • (String)

Raises:

  • (NotImplementedError)

46
47
48
# File 'lib/stoplight/data_store/base.rb', line 46

def set_state(_light, _state)
  raise NotImplementedError
end