require "nicoquery/version" require "nicoquery/crawler/tag_search" require "nicoquery/object/mylist" require "nicoquery/object/movie" module NicoQuery def tag_search(tag: tag, sort: sort, order: order, &block) NicoQuery::Crawler::TagSearch.execute(tag: tag, sort: sort, order: order, &block) end def mylist(mylist_id) NicoQuery::Object::Mylist.new mylist_id end def movie(args) if args.is_a? Array array = [] NicoQuery::Crawler::BulkScraping.execute(args) {|movie| array << movie } array else NicoQuery::Object::Movie.new args end end module_function :tag_search module_function :mylist module_function :movie end