Class: Testcube::Adapters::BaseAdapter
- Inherits:
-
Object
- Object
- Testcube::Adapters::BaseAdapter
- Defined in:
- lib/testcube/adapters/base_adapter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/testcube/adapters/base_adapter.rb', line 4 def api_key @api_key end |
Class Method Details
.bind(api_key) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/testcube/adapters/base_adapter.rb', line 6 def self.bind(api_key) adapter = new adapter.api_key = api_key if api_key adapter.bind else Testcube.logger.warn('No api key specified. Not recording!') end adapter end |
Instance Method Details
#bind ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/testcube/adapters/base_adapter.rb', line 17 def bind if Testcube::Config::Env.recording_enabled? Testcube.logger.info('Test suite time execution recording enabled.') bind_time_tracker bind_save_report end end |
#bind_save_report ⇒ Object
29 30 31 |
# File 'lib/testcube/adapters/base_adapter.rb', line 29 def bind_save_report raise NotImplementedError end |
#bind_time_tracker ⇒ Object
25 26 27 |
# File 'lib/testcube/adapters/base_adapter.rb', line 25 def bind_time_tracker raise NotImplementedError end |