lib/ugigi.rb in ugigi-0.4.1 vs lib/ugigi.rb in ugigi-0.4.2

- old
+ new

@@ -62,9 +62,18 @@ data = send_req("search/list_count.json", args) return data["count"] end def self.mylist(args={}) + case args[:only] + when :sosowa + args = args.update(:sswp => 0, :compe => 0) + when :compe + args = args.update(:sswl => 0, :sswp => 0) + when :sswp + args = args.update(:sswl => 0, :compe => 0) + end + args.delete(:only) if args.has_key? :only data = send_req("list/get", args) indexes = [] data.each do |e| index = Index.new(e) case args[:style]