Class: DefraRuby::Aws::Response
- Inherits:
-
Object
- Object
- DefraRuby::Aws::Response
- Defined in:
- lib/defra_ruby/aws/response.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(response_exe) ⇒ Response
constructor
A new instance of Response.
- #successful? ⇒ Boolean
Constructor Details
#initialize(response_exe) ⇒ Response
Returns a new instance of Response.
10 11 12 13 14 15 16 |
# File 'lib/defra_ruby/aws/response.rb', line 10 def initialize(response_exe) @success = true @error = nil @result = nil capture_response(response_exe) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
8 9 10 |
# File 'lib/defra_ruby/aws/response.rb', line 8 def error @error end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/defra_ruby/aws/response.rb', line 8 def result @result end |
Instance Method Details
#successful? ⇒ Boolean
18 19 20 |
# File 'lib/defra_ruby/aws/response.rb', line 18 def successful? success end |