Class: Webspec::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/webspec/run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

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