Class: BuildBox::Response
- Inherits:
-
Object
- Object
- BuildBox::Response
- Defined in:
- lib/build_box/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
TODO: return de evaluated code.
-
#error ⇒ Object
TODO: return de evaluated code.
-
#output ⇒ Object
(also: #result)
TODO: return de evaluated code.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(code, binding_context, security_level, timeout) ⇒ Response
constructor
A new instance of Response.
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
#code ⇒ Object
TODO: return de evaluated code
3 4 5 |
# File 'lib/build_box/response.rb', line 3 def code @code end |
#error ⇒ Object
TODO: return de evaluated code
3 4 5 |
# File 'lib/build_box/response.rb', line 3 def error @error end |
#output ⇒ Object 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
11 12 13 |
# File 'lib/build_box/response.rb', line 11 def error? !@error.nil? end |