Sha256: c7d93f6634767b77f68db278505555cdb06c566748b2429e18af24a2c841d2ac
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
require 'nicoquery/core/base' module NicoQuery module Core class VideoArray include NicoQuery::Core::Base def initialize(video_id_array) @video_id_array = 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nicoquery-core-0.0.5.2 | lib/nicoquery/core/video_array.rb |
nicoquery-core-0.0.5.1 | lib/nicoquery/core/video_array.rb |