Class: Netflix::User

Inherits:
JsonResource show all
Defined in:
lib/netflix/user.rb

Instance Method Summary collapse

Methods inherited from JsonResource

define_getter

Constructor Details

#initialize(oauth_access_token, user_id) ⇒ User

access_key, access_secret)



7
8
9
10
11
# File 'lib/netflix/user.rb', line 7

def initialize(oauth_access_token, user_id) #access_key, access_secret)
  @oauth_access_token = oauth_access_token
  @user_id = user_id
  super(retrieve)
end

Instance Method Details

#available_disc_queueObject



13
14
15
# File 'lib/netflix/user.rb', line 13

def available_disc_queue
  @available_disc_queue ||= Queue.new(@oauth_access_token, user_id, Queue::TYPE_DISC)
end