Persons.initialize()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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