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.

Proxy.method_missing()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 3

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 3
c 3
b 0
f 0
dl 0
loc 12
ccs 8
cts 8
cp 1
crap 3
rs 9.4285
1 1
module Textris
2 1
  module Delay
3 1
    module Sidekiq
4 1
      class Proxy
5 1
        def initialize(texter, options = {})
6 8
          @texter     = texter
7 8
          @perform_in = options[:perform_in]
8 8
          @perform_at = options[:perform_at]
9
        end
10
11 1
        def method_missing(method_name, *args)
12 8
          args = ::Textris::Delay::Sidekiq::Serializer.serialize(args)
13 8
          args = [@texter, method_name, args]
14
15 8
          if @perform_in
16 1
            ::Textris::Delay::Sidekiq::Worker.perform_in(@perform_in, *args)
17 7
          elsif @perform_at
18 1
            ::Textris::Delay::Sidekiq::Worker.perform_at(@perform_at, *args)
19
          else
20 6
            ::Textris::Delay::Sidekiq::Worker.perform_async(*args)
21
          end
22
        end
23
      end
24
    end
25
  end
26
end
27