Exception: Libgss::ServerBlockError

Inherits:
ErrorResponse show all
Defined in:
lib/libgss.rb

Constant Summary collapse

STATUS =
503
BODY =
"api maintenance".freeze

Instance Attribute Summary

Attributes inherited from ErrorResponse

#status

Class Method Summary collapse

Methods inherited from ErrorResponse

build, inherited, #initialize, subclasses

Constructor Details

This class inherits a constructor from Libgss::ErrorResponse

Class Method Details

.match?(res) ⇒ Boolean

Returns:

  • (Boolean)


54
55
56
57
# File 'lib/libgss.rb', line 54

def self.match?(res)
  res.content.nil? ? false :
    (res.status == STATUS) && (res.content.strip == BODY)
end