Class: Vimeo::Simple::User

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

Class Method Summary collapse

Class Method Details

.albums(username) ⇒ Object

Returns a list of a user’s albums.

Parameters:

  • username (String)

    The user’s id or username.



50
51
52
# File 'lib/vimeo/simple/user.rb', line 50

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

.all_videos(username) ⇒ Object

Returns a list of all videos that are related to a user.

Parameters:

  • username (String)

    The user’s id or username.



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

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

.appears_in(username) ⇒ Object

Returns a list of the videos a user appears in.

Parameters:

  • username (String)

    The user’s id or username.



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

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

.channels(username) ⇒ Object

Returns a list of a user’s channels.

Parameters:

  • username (String)

    The user’s id or username.



57
58
59
# File 'lib/vimeo/simple/user.rb', line 57

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

.contacts_like(username) ⇒ Object

Returns a list of videos that a user’s contacts liked.

Parameters:

  • username (String)

    The user’s id or username.



78
79
80
# File 'lib/vimeo/simple/user.rb', line 78

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

.contacts_videos(username) ⇒ Object

Returns a list of a user’s contact’s videos.

Parameters:

  • username (String)

    The user’s id or username.



71
72
73
# File 'lib/vimeo/simple/user.rb', line 71

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

.groups(username) ⇒ Object

Returns a list of a user’s groups.

Parameters:

  • username (String)

    The user’s id or username.



64
65
66
# File 'lib/vimeo/simple/user.rb', line 64

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

.info(username) ⇒ Object

Returns a user’s metadata.

Parameters:

  • username (String)

    The user’s id or username.



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

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

.likes(username) ⇒ Object

Returns a list of a user’s liked videos.

Parameters:

  • username (String)

    The user’s id or username.



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

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

.subscriptions(username) ⇒ Object

Returns a list of a user’s subscriptions.

Parameters:

  • username (String)

    The user’s id or username.



43
44
45
# File 'lib/vimeo/simple/user.rb', line 43

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

.videos(username) ⇒ Object

Returns a list of a user’s videos.

Parameters:

  • username (String)

    The user’s id or username.



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

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