Persons.get()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 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