class VineDl::User
Attributes
password[R]
username[R]
Public Class Methods
new(_username, _password)
click to toggle source
# File lib/vine_dl/user.rb, line 8 def initialize(_username, _password) @username = _username @password = _password end
Public Instance Methods
timeline()
click to toggle source
# File lib/vine_dl/user.rb, line 17 def timeline @timeline ||= client.timelines(twitter_id) end
twitter_id()
click to toggle source
# File lib/vine_dl/user.rb, line 21 def twitter_id @twitter_id ||= client.user_info.fetch(:twitterId) end
videos()
click to toggle source
# File lib/vine_dl/user.rb, line 13 def videos @videos ||= timeline.records.map { |client_video| Video.new(self, client_video) } end
Private Instance Methods
client()
click to toggle source
# File lib/vine_dl/user.rb, line 27 def client @client ||= ::Vine::Client.new(username, password) end