Class: Webspec::Example

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Example

Returns a new instance of Example.



5
6
7
8
# File 'lib/webspec/example.rb', line 5

def initialize(params = {})
  @id = params["_id"]
  @run = params[:run]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/webspec/example.rb', line 3

def id
  @id
end

#runObject

Returns the value of attribute run.



3
4
5
# File 'lib/webspec/example.rb', line 3

def run
  @run
end