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.

Job.perform()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
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 ActiveJob
4 1
      class Job < ::ActiveJob::Base
5 1
        queue_as :textris
6
7 1
        def perform(texter, action, args)
8 3
          texter = texter.safe_constantize
9
10 3
          if texter.present?
11 3
            texter.new(action, *args).call_action.deliver_now
12
          end
13
        end
14
      end
15
    end
16
  end
17
end
18