lib/nicoquery.rb in nicoquery-0.0.1.4 vs lib/nicoquery.rb in nicoquery-0.0.2

- old
+ new

@@ -1,12 +1,23 @@ require "nicoquery/version" require "nicoquery/crawler" +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(video_id) + NicoQuery::Object::Movie.new video_id + end + module_function :tag_search + module_function :mylist + module_function :movie end -; \ No newline at end of file