Class: Webspec::Example
- Inherits:
-
Object
- Object
- Webspec::Example
- Defined in:
- lib/webspec/example.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#run ⇒ Object
Returns the value of attribute run.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Example
constructor
A new instance of Example.
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
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/webspec/example.rb', line 3 def id @id end |
#run ⇒ Object
Returns the value of attribute run.
3 4 5 |
# File 'lib/webspec/example.rb', line 3 def run @run end |