Class: KalibroClient::KalibroCucumberHelpers::Cleaner
- Inherits:
-
Object
- Object
- KalibroClient::KalibroCucumberHelpers::Cleaner
- Includes:
- Likeno::RequestMethods
- Defined in:
- lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb
Instance Attribute Summary collapse
-
#address_key ⇒ Object
readonly
Returns the value of attribute address_key.
Instance Method Summary collapse
- #address ⇒ Object
- #clean_database ⇒ Object
- #endpoint ⇒ Object
-
#initialize(address_key) ⇒ Cleaner
constructor
A new instance of Cleaner.
Constructor Details
#initialize(address_key) ⇒ Cleaner
Returns a new instance of Cleaner.
10 11 12 |
# File 'lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb', line 10 def initialize(address_key) @address_key = address_key end |
Instance Attribute Details
#address_key ⇒ Object (readonly)
Returns the value of attribute address_key.
8 9 10 |
# File 'lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb', line 8 def address_key @address_key end |
Instance Method Details
#address ⇒ Object
14 15 16 |
# File 'lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb', line 14 def address Likeno.config[address_key] end |
#clean_database ⇒ Object
22 23 24 |
# File 'lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb', line 22 def clean_database request('clean_database', {}, :post) end |
#endpoint ⇒ Object
18 19 20 |
# File 'lib/kalibro_client/kalibro_cucumber_helpers/cleaner.rb', line 18 def endpoint 'tests' end |