lib/netflix/queue.rb
def add(title_ref, position=nil)
      response = @oauth_access_token.post "/users/#{@user_id}/queues/#{@type}?output=json", {:etag => etag, :title_ref => title_ref, :position=> position}
      #@map = retrieve
      #netflix is wacky. GET after an add can be STALE. ughg
      #so recreate the contents programattically instead
      response_obj = JSON.parse(response.body)
      new_queue_item = response_obj["status"]["resources_created"]["queue_item"]
      new_etag = response_obj["status"]["etag"]
      repopulate(new_queue_item, new_etag)
      self
    end
def add(title_ref, position=nil)
      response = @oauth_access_token.post "/users/#{@user_id}/queues/#{@type}?output=json", {:etag => etag, :title_ref => title_ref, :position=> position}
      #@map = retrieve
      #netflix is wacky. GET after an add can be STALE. ughg
      #so recreate the contents programattically instead
      response_obj = JSON.parse(response.body)
      new_queue_item = response_obj["status"]["resources_created"]["queue_item"]
      new_etag = response_obj["status"]["etag"]
      repopulate(new_queue_item, new_etag)
      self
    end
def queue_items
  queue_items = [queue_item].flatten
  queue_items.map {|queue_item| Disc.new(queue_item)}
end