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



46
47
48
49
50
51
52
# File 'lib/deas/test_runner.rb', line 46

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



45
46
47
# File 'lib/deas/test_runner.rb', line 45

def body
  @body
end

#headersObject

Returns the value of attribute headers



45
46
47
# File 'lib/deas/test_runner.rb', line 45

def headers
  @headers
end

#statusObject

Returns the value of attribute status



45
46
47
# File 'lib/deas/test_runner.rb', line 45

def status
  @status
end