class GMO::PG::GenericResponse
Private Class Methods
inherited(inherited)
click to toggle source
Calls superclass method
# File lib/gmo-pg/http_resource/generic_response.rb, line 14 def self.inherited(inherited) super inherited.class_eval do bind_attribute :ErrCode, :err_code bind_attribute :ErrInfo, :err_info end end
Public Instance Methods
error?()
click to toggle source
# File lib/gmo-pg/http_resource/generic_response.rb, line 4 def error? !!(err_code || err_info) end
errors()
click to toggle source
# File lib/gmo-pg/http_resource/generic_response.rb, line 8 def errors GMO::PG::Errors.new(err_code, err_info) if error? end