Sha256: aec98bee7f85e08504e41272c74952710746ae49d39d30ece12fad954344fb4b
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require 'nicoapi/base' module NicoAPI class VideoArray include NicoAPI::Base def set(video_id_array) @dynamic_segment = '' @params_array = params_array video_id_array end private def host 'i.nicovideo.jp' end def static_segment 'v3/video.array' end # video.array APIは動的セグメントではなく、URIパラメータとして動画を指定する。 def params_array(video_id_array) ['v=' + video_id_array.join(',')] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nicoapi-0.0.1 | lib/nicoapi/video_array.rb |