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.



119
120
121
122
123
# File 'lib/blix/rest.rb', line 119

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.



118
119
120
# File 'lib/blix/rest.rb', line 118

def realm
  @realm
end

#typeObject (readonly)

Returns the value of attribute type.



118
119
120
# File 'lib/blix/rest.rb', line 118

def type
  @type
end