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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A to_s() 0 4 2
A initialize() 0 5 1
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