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.
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 |
# File 'lib/defra_ruby/aws/response.rb', line 10 def initialize(response_exe) @success = true @error = 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 |
Instance Method Details
#successful? ⇒ Boolean
17 18 19 |
# File 'lib/defra_ruby/aws/response.rb', line 17 def successful? success end |