def update!(params)
      self.name     = params[:name]
      self.endpoint = params[:endpoint]
      self.secret   = params[:secret]
      self.gitlab   = params[:gitlab] || false
      self.shortener_url = params[:shortener_url]
      self.shortener_secret = params[:shortener_secret]
      set_channels params[:channels], params[:config]
    end
def update!(params)
      self.name     = params[:name]
      self.endpoint = params[:endpoint]
      self.secret   = params[:secret]
      self.gitlab   = params[:gitlab] || false
      self.shortener_url = params[:shortener_url]
      self.shortener_secret = params[:shortener_secret]
      set_channels params[:channels], params[:config]
    end
Creates a new integration from the supplied hash.

 @param params [Hash] A hash with symbolic keys representing the instance
                      attributes of this integration. The key +:name+ is
                      required.
 Updates the integration from the supplied hash.

 @param params [Hash] A hash with symbolic keys representing the instance
                      attributes of this integration.