Class: BitcoinTestnet::VcrIntegrator
- Inherits:
-
Object
- Object
- BitcoinTestnet::VcrIntegrator
- Defined in:
- lib/bitcoin_testnet/vcr_integrator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rspec_example) ⇒ VcrIntegrator
constructor
A new instance of VcrIntegrator.
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(rspec_example) ⇒ VcrIntegrator
Returns a new instance of VcrIntegrator.
12 13 14 |
# File 'lib/bitcoin_testnet/vcr_integrator.rb', line 12 def initialize(rspec_example) BitcoinTestnet.current_test = @rspec_example = rspec_example end |
Class Method Details
.start(*args) ⇒ Object
4 5 6 |
# File 'lib/bitcoin_testnet/vcr_integrator.rb', line 4 def self.start(*args) self.new(*args).start end |
.stop(*args) ⇒ Object
8 9 10 |
# File 'lib/bitcoin_testnet/vcr_integrator.rb', line 8 def self.stop(*args) self.new(*args).stop end |
Instance Method Details
#start ⇒ Object
16 17 18 |
# File 'lib/bitcoin_testnet/vcr_integrator.rb', line 16 def start BitcoinTestnet.start if should_perform? end |
#stop ⇒ Object
20 21 22 |
# File 'lib/bitcoin_testnet/vcr_integrator.rb', line 20 def stop BitcoinTestnet.stop if should_perform? end |