Exception: Himari::Services::UpstreamAuthentication::UnauthorizedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/himari/services/upstream_authentication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.

Parameters:



15
16
17
18
# File 'lib/himari/services/upstream_authentication.rb', line 15

def initialize(result)
  @result = result
  super("Unauthorized")
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



20
21
22
# File 'lib/himari/services/upstream_authentication.rb', line 20

def result
  @result
end

Instance Method Details

#as_logObject



22
23
24
# File 'lib/himari/services/upstream_authentication.rb', line 22

def as_log
  result.as_log
end