module Iesde
  module Api
    class ObterAula < ::Iesde::API
      def initialize(format, opts)
        super(:aulas, format, opts)
      end
    end
  end
end

module Iesde
  module Api
    class ObterAula < ::Iesde::API
      def initialize(format, opts)
        super(:aulas, format, opts)
        @response = "[]" if as_json.is_a?(Hash) && tem_chave?("status") && ( status == false )
      end
    end
  end
end

Fix error when something goes wrong
[Aula] Fix error when something goes wrong
