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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A deliver() 0 7 1
A client() 0 3 1
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