Class: Deas::TestRunner::HaltArgs
- Inherits:
-
Struct
- Object
- Struct
- Deas::TestRunner::HaltArgs
- Defined in:
- lib/deas/test_runner.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(args) ⇒ HaltArgs
constructor
A new instance of HaltArgs.
Constructor Details
#initialize(args) ⇒ HaltArgs
Returns a new instance of HaltArgs.
36 37 38 39 40 41 42 |
# File 'lib/deas/test_runner.rb', line 36 def initialize(args) super(*[ !args.last.kind_of?(::Hash) && !args.last.kind_of?(::Integer) ? args.pop : nil, args.last.kind_of?(::Hash) ? args.pop : nil, args.first.kind_of?(::Integer) ? args.first : nil ]) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
35 36 37 |
# File 'lib/deas/test_runner.rb', line 35 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
35 36 37 |
# File 'lib/deas/test_runner.rb', line 35 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
35 36 37 |
# File 'lib/deas/test_runner.rb', line 35 def status @status end |