Class: VCR::Proxy::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/vcr/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



22
23
24
25
26
27
28
29
# File 'lib/vcr/proxy.rb', line 22

def initialize
  @endpoint = 'https://example.com'
  @cassette_library_dir = 'fixtures/vcr_cassettes'
  @match_requests_on = %i[path query body method]
  @port = 8099
  @bind = '0.0.0.0'
  @record_mode = :once
end

Instance Attribute Details

#bindObject

Returns the value of attribute bind.



20
21
22
# File 'lib/vcr/proxy.rb', line 20

def bind
  @bind
end

#cassette_library_dirObject

Returns the value of attribute cassette_library_dir.



16
17
18
# File 'lib/vcr/proxy.rb', line 16

def cassette_library_dir
  @cassette_library_dir
end

#endpointObject

Returns the value of attribute endpoint.



15
16
17
# File 'lib/vcr/proxy.rb', line 15

def endpoint
  @endpoint
end

#match_requests_onObject

Returns the value of attribute match_requests_on.



18
19
20
# File 'lib/vcr/proxy.rb', line 18

def match_requests_on
  @match_requests_on
end

#portObject

Returns the value of attribute port.



19
20
21
# File 'lib/vcr/proxy.rb', line 19

def port
  @port
end

#record_modeObject

Returns the value of attribute record_mode.



17
18
19
# File 'lib/vcr/proxy.rb', line 17

def record_mode
  @record_mode
end