class Yt::Collections::LiveStreamingDetails
@private
Private Instance Methods
attributes_for_new_item(data)
click to toggle source
# File lib/yt/collections/live_streaming_details.rb, line 11 def attributes_for_new_item(data) {data: data['liveStreamingDetails']} end
list_params()
click to toggle source
@return [Hash] the parameters to submit to YouTube to get the
live streaming detail of a resource, for instance a video.
@see developers.google.com/youtube/v3/docs/videos#resource
Calls superclass method
Yt::Actions::List#list_params
# File lib/yt/collections/live_streaming_details.rb, line 18 def list_params super.tap do |params| params[:params] = live_streaming_details_params params[:path] = '/youtube/v3/videos' end end
live_streaming_details_params()
click to toggle source
# File lib/yt/collections/live_streaming_details.rb, line 25 def live_streaming_details_params {max_results: 50, part: 'liveStreamingDetails', id: @parent.id} end