Sha256: ad75ce00f3960671691f4e396b14954c1a801c19716f9a8bb68147e49b8d5144

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

require "nicoapi/version"

require "nicoapi/getthumbinfo"
require "nicoapi/tag_search"
require "nicoapi/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)
    instance = NicoAPI::TagSearch.new
    instance.set tag: tag, sort: sort, order: order
    instance.get
  end

  module_function :getthumbinfo
  module_function :video_array
  module_function :tag_search
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nicoapi-0.0.1 lib/nicoapi.rb