Class: GooglePlus::Activities::Client

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/google_plus/activities.rb

Instance Method Summary collapse

Instance Method Details

#get(activity_id) ⇒ Object



18
19
20
# File 'lib/google_plus/activities.rb', line 18

def get(activity_id)
  Activity.new get_with_key("/activities/#{activity_id}")
end

#list(user_id) ⇒ Object



22
23
24
25
# File 'lib/google_plus/activities.rb', line 22

def list(user_id)
  items = get_with_key("/people/#{user_id}/activities/public")["items"]
  items ? items.collect { |item| Activity.new item } : []
end