Sha256: 4778f06d873a4b49287a3dbdc2d289b0786301d4926af68d1d81b19ea8b65616

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

require "nicoapi/core/version"

require "nicoapi/core/getthumbinfo"
require "nicoapi/core/tag_search"
require "nicoapi/core/video_array"


module NicoAPI
  def getthumbinfo(video_id)
    instance = NicoAPI::GetThumbInfo.new
    instance.set video_id
    instance.get
  end

  def video_array(video_id_array)
    instance = NicoAPI::VideoArray.new
    instance.set video_id_array
    instance.get
  end

  def tag_search(tag: tag, sort: sort, order: order, page: page)
    instance = NicoAPI::TagSearch.new
    instance.set tag: tag, sort: sort, order: order, page: page
    instance.get
  end

  module_function :getthumbinfo
  module_function :video_array
  module_function :tag_search
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nicoapi-core-0.0.4.2 lib/nicoapi/core.rb
nicoapi-core-0.0.3.2 lib/nicoapi/core.rb
nicoapi-core-0.0.3.1 lib/nicoapi/core.rb
nicoapi-core-0.0.3 lib/nicoapi/core.rb
nicoapi-core-0.0.2 lib/nicoapi/core.rb