def gets
      begin
        data = make_http_request
        @hash = send(@@formats[@format][:oembed_parser], data) # Call the method specified in default_formats hash above
      rescue RuntimeError => e
        if e.message == "401"
          # Embedding disabled
          return nil        
        elsif e.message == "501"
          # Format not supported
          raise UnsupportedError, "#{@format} not supported by #{@domain}"
        elsif e.message == "404"
          # Not found
          raise Error, "#{@url} not found"
        else
          raise e
        end
      end
    end
def gets
      begin
        data = make_http_request
        @hash = send(@@formats[@format][:oembed_parser], data) # Call the method specified in default_formats hash above
      rescue RuntimeError => e
        if e.message == "401"
          # Embedding disabled
          return nil        
        elsif e.message == "501"
          # Format not supported
          raise UnsupportedError, "#{@format} not supported by #{@domain}"
        elsif e.message == "404"
          # Not found
          raise Error, "#{@url} not found"
        else
          raise e
        end
      end
    end
Calling +gets+ returns a hash containing the oembed data.