GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Route4meError.initialize()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
1
module Route4me
2
  class Route4meError < StandardError
3
    attr_reader :message, :http_status, :http_body
4
5
    def initialize(message=nil, http_status=nil, http_body=nil)
6
      @message = message
7
      @http_status = http_status
8
      @http_body = http_body
9
    end
10
11
    def to_s
12
      status_string = @http_status.nil? ? "" : "(Status #{@http_status}) "
13
      "#{status_string}#{@message}"
14
    end
15
  end
16
end
17