Class: Mattermost::Command

Inherits:
Client
  • Object
show all
Defined in:
lib/mattermost/command.rb

Instance Attribute Summary

Attributes inherited from Client

#user

Instance Method Summary collapse

Methods inherited from Client

#initialize, #with_session

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