def select_defined(args)
      args.select { |k, v| (ATTRS.include? k) && !v.nil? }
    end
def select_defined(args)
      args.select { |k, v| (ATTRS.include? k) && !v.nil? }
    end
Based on the ATTRS the args are returned that are included in the ATTRS.
 args with nil values are omitted