module Onering module API class Auth < Base class< true, :sort => true, :filter => nil }) _check_type(type) rv = request("#{type}/list").collect{|i| i[field.to_s] } rv = rv.uniq if options[:unique] rv = rv.sort if options[:sort] rv end def save(type, id, data) _check_type(type) request("#{type}/#{id}", { :method => :post, :data => data }) end end end end end