Persons   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 3 1
A get() 0 6 2
1
module GlipSdk
2
  module REST
3
    class Persons
4
      def initialize(rc_sdk)
5
        @api = rc_sdk
6
      end
7
8
      def get(opts = {})
9
        if opts.key? :personId
10
          return @api.http.get "glip/persons/#{opts[:personId]}"
11
        end
12
        nil
13
      end
14
    end
15
  end
16
end
17