Exception: Blix::Rest::AuthorizationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blix/rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, realm = nil, type = nil) ⇒ AuthorizationError

Returns a new instance of AuthorizationError.



128
129
130
131
132
# File 'lib/blix/rest.rb', line 128

def initialize(message=nil, realm=nil, type=nil)
  super(message || "")
  @realm = realm || 'rest'
  @type = type || 'Basic'
end

Instance Attribute Details

#realmObject (readonly)

Returns the value of attribute realm.



127
128
129
# File 'lib/blix/rest.rb', line 127

def realm
  @realm
end

#typeObject (readonly)

Returns the value of attribute type.



127
128
129
# File 'lib/blix/rest.rb', line 127

def type
  @type
end