Class: BuildBox::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/build_box/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, binding_context, security_level, timeout) ⇒ Response

Returns a new instance of Response.



7
8
9
# File 'lib/build_box/response.rb', line 7

def initialize(code, binding_context, security_level, timeout)
  evaluate(code, binding_context, security_level, timeout)
end

Instance Attribute Details

#codeObject

TODO: return de evaluated code



3
4
5
# File 'lib/build_box/response.rb', line 3

def code
  @code
end

#errorObject

TODO: return de evaluated code



3
4
5
# File 'lib/build_box/response.rb', line 3

def error
  @error
end

#outputObject Also known as: result

TODO: return de evaluated code



3
4
5
# File 'lib/build_box/response.rb', line 3

def output
  @output
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/build_box/response.rb', line 11

def error?
  !@error.nil?
end