Class: GlipSdk::REST::Persons

Inherits:
Object
  • Object
show all
Defined in:
lib/glip_sdk/rest/persons.rb

Instance Method Summary collapse

Constructor Details

#initialize(rc_sdk) ⇒ Persons

Returns a new instance of Persons.



4
5
6
# File 'lib/glip_sdk/rest/persons.rb', line 4

def initialize(rc_sdk)
  @api = rc_sdk
end

Instance Method Details

#get(opts = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/glip_sdk/rest/persons.rb', line 8

def get(opts = {})
  if opts.key? :personId
    return @api.http.get "glip/persons/#{opts[:personId]}"
  end
  nil
end