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.



87
88
89
90
91
92
93
94
# File 'lib/deas/test_runner.rb', line 87

def initialize(args)
  a = args.dup
  super(*[
    a.first.instance_of?(::Fixnum) ? a.shift : nil,
    a.first.kind_of?(::Hash)       ? a.shift : nil,
    a.shift
  ])
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



86
87
88
# File 'lib/deas/test_runner.rb', line 86

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



86
87
88
# File 'lib/deas/test_runner.rb', line 86

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



86
87
88
# File 'lib/deas/test_runner.rb', line 86

def status
  @status
end