Class: VineDl::User
- Inherits:
-
Object
- Object
- VineDl::User
- Defined in:
- lib/vine_dl/user.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(_username, _password) ⇒ User
constructor
A new instance of User.
- #timeline ⇒ Object
- #twitter_id ⇒ Object
- #videos ⇒ Object
Constructor Details
#initialize(_username, _password) ⇒ User
Returns a new instance of User.
8 9 10 11 |
# File 'lib/vine_dl/user.rb', line 8 def initialize(_username, _password) @username = _username @password = _password end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/vine_dl/user.rb', line 6 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
6 7 8 |
# File 'lib/vine_dl/user.rb', line 6 def username @username end |
Instance Method Details
#timeline ⇒ Object
17 18 19 |
# File 'lib/vine_dl/user.rb', line 17 def timeline @timeline ||= client.timelines(twitter_id) end |
#twitter_id ⇒ Object
21 22 23 |
# File 'lib/vine_dl/user.rb', line 21 def twitter_id @twitter_id ||= client.user_info.fetch(:twitterId) end |