Exception: OAuth::Unauthorized
- Defined in:
- lib/oauth/errors/unauthorized.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request = nil) ⇒ Unauthorized
constructor
A new instance of Unauthorized.
- #to_s ⇒ Object
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
#request ⇒ Object (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_s ⇒ Object
8 9 10 |
# File 'lib/oauth/errors/unauthorized.rb', line 8 def to_s [request.code, request.] * " " end |