Class: DefraRuby::Aws::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (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

Returns:

  • (Boolean)


17
18
19
# File 'lib/defra_ruby/aws/response.rb', line 17

def successful?
  success
end