Class: VCR::Proxy::Config
- Inherits:
-
Object
- Object
- VCR::Proxy::Config
- Includes:
- Singleton
- Defined in:
- lib/vcr/proxy.rb
Instance Attribute Summary collapse
-
#bind ⇒ Object
Returns the value of attribute bind.
-
#cassette_library_dir ⇒ Object
Returns the value of attribute cassette_library_dir.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#match_requests_on ⇒ Object
Returns the value of attribute match_requests_on.
-
#port ⇒ Object
Returns the value of attribute port.
-
#record_mode ⇒ Object
Returns the value of attribute record_mode.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#bind ⇒ Object
Returns the value of attribute bind.
20 21 22 |
# File 'lib/vcr/proxy.rb', line 20 def bind @bind end |
#cassette_library_dir ⇒ Object
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 |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
15 16 17 |
# File 'lib/vcr/proxy.rb', line 15 def endpoint @endpoint end |
#match_requests_on ⇒ Object
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 |
#port ⇒ Object
Returns the value of attribute port.
19 20 21 |
# File 'lib/vcr/proxy.rb', line 19 def port @port end |
#record_mode ⇒ Object
Returns the value of attribute record_mode.
17 18 19 |
# File 'lib/vcr/proxy.rb', line 17 def record_mode @record_mode end |