Class: Vimeo::Simple::Activity

Inherits:
Base
  • Object
show all
Defined in:
lib/vimeo/simple/activity.rb

Class Method Summary collapse

Class Method Details

.contacts_did(username) ⇒ Object

Returns a list of activities a user’s contact’s did.

Parameters:

  • username (String)

    The user’s id or username.



22
23
24
# File 'lib/vimeo/simple/activity.rb', line 22

def self.contacts_did(username)
  get("/activity/#{username}/contacts_did.json")
end

.everyone_did(username) ⇒ Object

Returns a list of activities everyone did.

Parameters:

  • username (String)

    The user’s id or username.



36
37
38
# File 'lib/vimeo/simple/activity.rb', line 36

def self.everyone_did(username)
  get("/activity/#{username}/everyone_did.json")
end

.happened_to_contacts(username) ⇒ Object

Returns a list of activities that happened to a user’s contacts.

Parameters:

  • username (String)

    The user’s id or username.



29
30
31
# File 'lib/vimeo/simple/activity.rb', line 29

def self.happened_to_contacts(username)
  get("/activity/#{username}/happened_to_contacts.json")
end

.happened_to_user(username) ⇒ Object

Returns a list of activities that happened to a user.

Parameters:

  • username (String)

    The user’s id or username.



15
16
17
# File 'lib/vimeo/simple/activity.rb', line 15

def self.happened_to_user(username)
  get("/activity/#{username}/happened_to_user.json")
end

.user_did(username) ⇒ Object

Returns a list of a user’s activities.

Parameters:

  • username (String)

    The user’s id or username.



8
9
10
# File 'lib/vimeo/simple/activity.rb', line 8

def self.user_did(username)
  get("/activity/#{username}/user_did.json")
end