Class: EROI::Response::Post
- Inherits:
-
Base
- Object
- Base
- EROI::Response::Post
show all
- Defined in:
- lib/eroi/response.rb
Instance Attribute Summary
Attributes inherited from Base
#data
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#number_of_records ⇒ Object
43
44
45
|
# File 'lib/eroi/response.rb', line 43
def number_of_records
@data['Response']['ImportRecords'].to_i
end
|
#success? ⇒ Boolean
37
38
39
40
41
|
# File 'lib/eroi/response.rb', line 37
def success?
@data['Response']['Compiled'] == 'Yes' &&
@data['Response']['DBConnect'] == 'OK' &&
@data['Response']['XMLUpload'] == 'Complete'
end
|