module OEmbed
  class Response
    # A Response used for representing static photos.
    class Photo < self
      # Returns an <img> tag pointing at the appropraite URL.
      def html
        "<img src='" + self.url + "' />"
      end
      
      private
      
      # See {section 2.3.4.1 of the oEmbed spec}[http://oembed.com/#section2.3]
      def must_override
        %w{
          url width height
        } + super
      end
      
    end
  end
end
module OEmbed
  class Response
    # A Response used for representing static photos.
    class Photo < self
      # Returns an <img> tag pointing at the appropraite URL.
      def html
        "<img src='#{self.url}' alt='#{self.title}' />"
      end
      
      private
      
      # See {section 2.3.4.1 of the oEmbed spec}[http://oembed.com/#section2.3]
      def must_override
        %w{
          url width height
        } + super
      end
      
    end
  end
end

Add the alt attribute on img with the title.
Add the alt attribute on img with the title.

Signed-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>
