Class: SPV::Fixtures::TmpKeeper
- Inherits:
-
Object
- Object
- SPV::Fixtures::TmpKeeper
- Defined in:
- lib/site_prism_vcr/fixtures/tmp_keeper.rb
Overview
This class is responsible for keeping a list of prepared fixtures which will be inserted to Vcr.
Instance Attribute Summary collapse
-
#fixtures ⇒ Object
readonly
Returns the value of attribute fixtures.
Instance Method Summary collapse
- #add_fixtures(new_fixtures) ⇒ Object
- #clean_fixtures ⇒ Object
-
#initialize(options) ⇒ TmpKeeper
constructor
A new instance of TmpKeeper.
Constructor Details
#initialize(options) ⇒ TmpKeeper
Returns a new instance of TmpKeeper.
8 9 10 |
# File 'lib/site_prism_vcr/fixtures/tmp_keeper.rb', line 8 def initialize() @fixtures, @options = [], end |
Instance Attribute Details
#fixtures ⇒ Object (readonly)
Returns the value of attribute fixtures.
6 7 8 |
# File 'lib/site_prism_vcr/fixtures/tmp_keeper.rb', line 6 def fixtures @fixtures end |
Instance Method Details
#add_fixtures(new_fixtures) ⇒ Object
16 17 18 |
# File 'lib/site_prism_vcr/fixtures/tmp_keeper.rb', line 16 def add_fixtures(new_fixtures) @fixtures.concat(new_fixtures) end |
#clean_fixtures ⇒ Object
12 13 14 |
# File 'lib/site_prism_vcr/fixtures/tmp_keeper.rb', line 12 def clean_fixtures @fixtures = [] end |