Class: Supreme::Error

Inherits:
Response show all
Defined in:
lib/supreme/response.rb

Overview

Response was an error

Instance Attribute Summary

Attributes inherited from Response

#body

Instance Method Summary collapse

Methods inherited from Response

for, #initialize

Constructor Details

This class inherits a constructor from Supreme::Response

Instance Method Details

#codeObject



126
127
128
# File 'lib/supreme/response.rb', line 126

def code
  text('//errorcode')
end

#error?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/supreme/response.rb', line 122

def error?
  true
end

#messageObject



130
131
132
# File 'lib/supreme/response.rb', line 130

def message
  text('//message')
end