Method: BOTR::Channel#update
- Defined in:
- lib/botr/channels/channel.rb
#update(**options) ⇒ BOTR::Channel
Configure or update the properties of a channel.
156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/botr/channels/channel.rb', line 156 def update(**) json = put_request(.merge(:channel_key => @key)) res = JSON.parse(json.body) if json.status == 200 process_update_response(res, ) else raise "HTTP Error #{json.status}: #{json.body}" end return self end |