Class: Deas::TestRunner::HaltArgs

Inherits:
Struct
  • Object
show all
Defined in:
lib/deas/test_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



35
36
37
# File 'lib/deas/test_runner.rb', line 35

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



35
36
37
# File 'lib/deas/test_runner.rb', line 35

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



35
36
37
# File 'lib/deas/test_runner.rb', line 35

def status
  @status
end