Class: GlipSdk::REST::Persons
- Inherits:
-
Object
- Object
- GlipSdk::REST::Persons
- Defined in:
- lib/glip_sdk/rest/persons.rb
Instance Method Summary collapse
- #get(opts = {}) ⇒ Object
-
#initialize(rc_sdk) ⇒ Persons
constructor
A new instance of Persons.
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 |