Class: DefraRuby::Area::Response
- Inherits:
-
Object
- Object
- DefraRuby::Area::Response
- Defined in:
- lib/defra_ruby/area/response.rb
Instance Attribute Summary collapse
-
#areas ⇒ Object
readonly
Returns the value of attribute areas.
-
#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.
8 9 10 11 12 13 14 |
# File 'lib/defra_ruby/area/response.rb', line 8 def initialize(response_exe) @success = true @areas = [] @error = nil capture_response(response_exe) end |
Instance Attribute Details
#areas ⇒ Object (readonly)
Returns the value of attribute areas.
6 7 8 |
# File 'lib/defra_ruby/area/response.rb', line 6 def areas @areas end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/defra_ruby/area/response.rb', line 6 def error @error end |
Instance Method Details
#successful? ⇒ Boolean
16 17 18 |
# File 'lib/defra_ruby/area/response.rb', line 16 def successful? success end |