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.

Sidekiq.delay_for()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 2
c 2
b 0
f 0
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
1 1
module Textris
2 1
  module Delay
3 1
    module Sidekiq
4 1
      def delay
5 6
        ::Textris::Delay::Sidekiq::Proxy.new(self.to_s)
6
      end
7
8 1
      def delay_for(interval)
9 2
        unless interval.is_a?(Fixnum)
10 1
          raise(ArgumentError, "Proper interval must be provided")
11
        end
12
13 1
        ::Textris::Delay::Sidekiq::Proxy.new(self.to_s, :perform_in => interval)
14
      end
15
16 1
      def delay_until(timestamp)
17 2
        unless timestamp.respond_to?(:to_time)
18 1
          raise(ArgumentError, "Proper timestamp must be provided")
19
        end
20
21 1
        ::Textris::Delay::Sidekiq::Proxy.new(self.to_s, :perform_at => timestamp)
22
      end
23
    end
24
  end
25
end
26
27
28