File: unauthorized.rb

package info (click to toggle)
ruby-oauth 0.5.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 584 kB
  • sloc: ruby: 4,070; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
module OAuth
  class Unauthorized < OAuth::Error
    attr_reader :request
    def initialize(request = nil)
      @request = request
    end

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