Class: Vimeo::Simple::User
Class Method Summary collapse
-
.albums(username) ⇒ Object
Returns a list of a user’s albums.
-
.all_videos(username) ⇒ Object
Returns a list of all videos that are related to a user.
-
.appears_in(username) ⇒ Object
Returns a list of the videos a user appears in.
-
.channels(username) ⇒ Object
Returns a list of a user’s channels.
-
.contacts_like(username) ⇒ Object
Returns a list of videos that a user’s contacts liked.
-
.contacts_videos(username) ⇒ Object
Returns a list of a user’s contact’s videos.
-
.groups(username) ⇒ Object
Returns a list of a user’s groups.
-
.info(username) ⇒ Object
Returns a user’s metadata.
-
.likes(username) ⇒ Object
Returns a list of a user’s liked videos.
-
.subscriptions(username) ⇒ Object
Returns a list of a user’s subscriptions.
-
.videos(username, page = 1) ⇒ Object
Returns a list of a user’s videos.
Class Method Details
.albums(username) ⇒ Object
Returns a list of a user’s albums.
55 56 57 |
# File 'lib/vimeo/simple/user.rb', line 55 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.
41 42 43 |
# File 'lib/vimeo/simple/user.rb', line 41 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.
34 35 36 |
# File 'lib/vimeo/simple/user.rb', line 34 def self.appears_in(username) get("/#{username}/appears_in.json") end |
.channels(username) ⇒ Object
Returns a list of a user’s channels.
62 63 64 |
# File 'lib/vimeo/simple/user.rb', line 62 def self.channels(username) get("/#{username}/channels.json") end |
.contacts_like(username) ⇒ Object
Returns a list of videos that a user’s contacts liked.
83 84 85 |
# File 'lib/vimeo/simple/user.rb', line 83 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.
76 77 78 |
# File 'lib/vimeo/simple/user.rb', line 76 def self.contacts_videos(username) get("/#{username}/contacts_videos.json") end |
.groups(username) ⇒ Object
Returns a list of a user’s groups.
69 70 71 |
# File 'lib/vimeo/simple/user.rb', line 69 def self.groups(username) get("/#{username}/groups.json") end |
.info(username) ⇒ Object
Returns a user’s metadata.
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.
27 28 29 |
# File 'lib/vimeo/simple/user.rb', line 27 def self.likes(username) get("/#{username}/likes.json") end |
.subscriptions(username) ⇒ Object
Returns a list of a user’s subscriptions.
48 49 50 |
# File 'lib/vimeo/simple/user.rb', line 48 def self.subscriptions(username) get("/#{username}/subscriptions.json") end |
.videos(username, page = 1) ⇒ Object
Returns a list of a user’s videos.
16 17 18 19 20 21 22 |
# File 'lib/vimeo/simple/user.rb', line 16 def self.videos(username, page=1) if page get("/#{username}/videos.json?page=#{page}") else get("/#{username}/videos.json") end end |