class URI::GID

def set_query(query)

Ruby 2.1 or less uses #set_query to assign the query
def set_query(query)
  set_params parse_query_params(query)
  super
end