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.

Nexmo.deliver()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
crap 1
rs 9.4285
1 1
module Textris
2 1
  module Delivery
3 1
    class Nexmo < Textris::Delivery::Base
4 1
      def deliver(phone)
5 2
        client.send_message(
6
          from: message.from_phone,
7
          to:   phone,
8
          text: message.content
9
        )
10
      end
11
12 1
      private
13 1
        def client
14 2
          @client ||= ::Nexmo::Client.new
15
        end
16
    end
17
  end
18
end
19