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.

Route.get()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 7

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 7
rs 9.4285
1
module Route4me
2
  class Route
3
    def self.url
4
      '/api.v4/route.php'
5
    end
6
7
    def self.get(params={})
8
      get = Util.extract(params, [
9
        :route_id, :directions, :route_path_output, :device_tracking_history,
10
        :limit, :offset, :original
11
      ])
12
      Route4me.request(:get, self.url, get: get)
13
    end
14
15
    def self.delete(params={})
16
      get = Util.extract(params, [:route_id])
17
      status = Route4me.request(:delete, self.url, get: get)
18
      status[:deleted]
19
    end
20
  end
21
end
22