Sha256: 29d62c84b0c86c553798e9add337ff075ffa4bc2d6b90d2dcc2353764cca71c2
Contents?: true
Size: 225 Bytes
Versions: 5
Compression:
Stored size: 225 Bytes
Contents
module Alma::Error def has_error? !error.empty? end def error_message (has_error?) ? error['errorList']['error']['errorMessage'] : '' end def error @response.fetch('web_service_result', {}) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
alma-0.2.8 | lib/alma/error.rb |
alma-0.2.6 | lib/alma/error.rb |
alma-0.2.5 | lib/alma/error.rb |
alma-0.2.4 | lib/alma/error.rb |
alma-0.2.3 | lib/alma/error.rb |