Module: Gplus::Activity
- Included in:
- Client
- Defined in:
- lib/gplus/activity.rb
Overview
A collection of methods for Google+ Activities API calls.
Instance Method Summary (collapse)
-
- (Hash) get_activity(id)
Get an Activity by its unique ID.
-
- (Hash) list_activities(person_id, options = {})
List a Person's Google+ activities.
-
- (Hash) search_activities(query, options = {})
Search all public Google+ activities.
Instance Method Details
- (Hash) get_activity(id)
Get an Activity by its unique ID.
10 11 12 |
# File 'lib/gplus/activity.rb', line 10 def get_activity(id) get("activities/#{id}") end |
- (Hash) list_activities(person_id, options = {})
List a Person's Google+ activities.
22 23 24 |
# File 'lib/gplus/activity.rb', line 22 def list_activities(person_id, = {}) get("people/#{person_id}/activities/public", ) end |
- (Hash) search_activities(query, options = {})
Search all public Google+ activities.
34 35 36 |
# File 'lib/gplus/activity.rb', line 34 def search_activities(query, = {}) get("activities", .merge(:query => query)) end |