Method: Codebot::Integration#update!
- Defined in:
- lib/codebot/integration.rb
#update!(params) ⇒ Object
Updates the integration from the supplied hash.
44 45 46 47 48 49 50 51 52 |
# File 'lib/codebot/integration.rb', line 44 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 |