Class: Mattermost::Command
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
Methods inherited from Client
Constructor Details
This class inherits a constructor from Mattermost::Client
Instance Method Details
#create(params) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/mattermost/command.rb', line 5 def create(params) response = session_post('/api/v4/commands', body: params.to_json) response['token'] end |