Module: Gplus::Person
- Included in:
- Client
- Defined in:
- lib/gplus/person.rb
Overview
A collection of methods for Google+ People API calls.
Instance Method Summary collapse
-
#get_person(id) ⇒ Hash
Get a person's Google+ profile.
-
#list_people_by_activity(activity_id, collection, options = {}) ⇒ Hash
List all of the people in the specified collection for a particular activity.
-
#search_people(query, options = {}) ⇒ Hash
Search all public Google+ profiles.
Instance Method Details
#get_person(id) ⇒ Hash
Get a person's Google+ profile. @ developers.google.com/+/api/latest/people/get The Google+ 'People: get' documentation.
10 11 12 |
# File 'lib/gplus/person.rb', line 10 def get_person(id) get("people/#{id}") end |
#list_people_by_activity(activity_id, collection, options = {}) ⇒ Hash
List all of the people in the specified collection for a particular activity.
36 37 38 |
# File 'lib/gplus/person.rb', line 36 def list_people_by_activity(activity_id, collection, = {}) get("activities/#{activity_id}/people/#{collection}", ) end |
#search_people(query, options = {}) ⇒ Hash
Search all public Google+ profiles.
23 24 25 |
# File 'lib/gplus/person.rb', line 23 def search_people(query, = {}) get("people", .merge(:query => query)) end |