added api generator implemented in Ruby