Class: Bas::SharedStorage::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bas/shared_storage/base.rb

Overview

SharedStorage base interface

Direct Known Subclasses

Default, Elasticsearch, Postgres

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Initializes the read with essential configuration parameters.



15
16
17
18
# File 'lib/bas/shared_storage/base.rb', line 15

def initialize(options = {})
  @read_options = options[:read_options] || {}
  @write_options = options[:write_options] || {}
end

Instance Attribute Details

#read_options ⇒ Object (readonly)

Returns the value of attribute read_options.



10
11
12
# File 'lib/bas/shared_storage/base.rb', line 10

def read_options
  @read_options
end

#read_response ⇒ Object (readonly)

Returns the value of attribute read_response.



10
11
12
# File 'lib/bas/shared_storage/base.rb', line 10

def read_response
  @read_response
end

#write_options ⇒ Object

Returns the value of attribute write_options.



11
12
13
# File 'lib/bas/shared_storage/base.rb', line 11

def write_options
  @write_options
end

#write_response ⇒ Object (readonly)

Returns the value of attribute write_response.



10
11
12
# File 'lib/bas/shared_storage/base.rb', line 10

def write_response
  @write_response
end

Instance Method Details

#close_connections ⇒ Object



24
# File 'lib/bas/shared_storage/base.rb', line 24

def close_connections; end

#set_in_process ⇒ Object



20
# File 'lib/bas/shared_storage/base.rb', line 20

def set_in_process; end

#set_processed ⇒ Object



22
# File 'lib/bas/shared_storage/base.rb', line 22

def set_processed; end