Module: MockServer::Store

Included in:
Playback, Record, MockServer::Spec::Helpers
Defined in:
lib/mock_server/store/global.rb

Instance Method Summary collapse

Instance Method Details

#mock_server_options_merge(opt = {}) ⇒ Object



5
6
7
8
# File 'lib/mock_server/store/global.rb', line 5

def mock_server_options_merge(opt = {})
  $mock_server_options ||= MockServer::State.new(opt)
  $mock_server_options.merge!(opt)
end

#mock_server_options_readObject



10
11
12
13
# File 'lib/mock_server/store/global.rb', line 10

def mock_server_options_read
  $mock_server_options ||= MockServer::State.new
  $mock_server_options
end

#mock_server_options_write(value) ⇒ Object



15
16
17
18
# File 'lib/mock_server/store/global.rb', line 15

def mock_server_options_write(value)
  $mock_server_options ||= MockServer::State.new
  $mock_server_options = value
end