def api_methods_in(klass)
      methods = klass.send(:instance_methods, false) - [:actions]
      methods.sort.each_with_object([]) do |method_name, accumulator|
        unless method_name.to_s.include?('with') ||
               method_name.to_s.include?('without')
          accumulator << method_name
        end
        accumulator
      end
    end
def api_methods_in(klass)
      methods = klass.send(:instance_methods, false) - [:actions]
      methods.sort.each_with_object([]) do |method_name, accumulator|
        unless method_name.to_s.include?('with') ||
               method_name.to_s.include?('without')
          accumulator << method_name
        end
        accumulator
      end
    end
Finds api methods in a class

 @param [Class] klass
   The klass to inspect for methods.

 @api private