Class: Webspec::Run
- Inherits:
-
Object
- Object
- Webspec::Run
- Defined in:
- lib/webspec/run.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #create_example(example) ⇒ Object
- #create_example_group(example_group) ⇒ Object
-
#initialize(params) ⇒ Run
constructor
A new instance of Run.
- #update(params) ⇒ Object
Constructor Details
#initialize(params) ⇒ Run
Returns a new instance of Run.
5 6 7 |
# File 'lib/webspec/run.rb', line 5 def initialize(params) @id = params["_id"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/webspec/run.rb', line 3 def id @id end |
Instance Method Details
#create_example(example) ⇒ Object
15 16 17 |
# File 'lib/webspec/run.rb', line 15 def create_example(example) Webspec.create_example(example, self) end |
#create_example_group(example_group) ⇒ Object
9 10 11 12 13 |
# File 'lib/webspec/run.rb', line 9 def create_example_group(example_group) example_group = Webspec.create_example_group(example_group, self) example_group.parent = self example_group end |
#update(params) ⇒ Object
19 20 21 |
# File 'lib/webspec/run.rb', line 19 def update(params) Webspec.update_run(id, params) end |