Exception: OAuth::Unauthorized

Inherits:
Error show all
Defined in:
lib/oauth/errors/unauthorized.rb

Direct Known Subclasses

Problem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request = nil) ⇒ Unauthorized

Returns a new instance of Unauthorized.



4
5
6
# File 'lib/oauth/errors/unauthorized.rb', line 4

def initialize(request = nil)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



3
4
5
# File 'lib/oauth/errors/unauthorized.rb', line 3

def request
  @request
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/oauth/errors/unauthorized.rb', line 8

def to_s
  [request.code, request.message] * " "
end