Module: Slack::Web::Api::Endpoints::Calls
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/calls.rb
Instance Method Summary collapse
-
#calls_add(options = {}) ⇒ Object
Registers a new Call.
-
#calls_end(options = {}) ⇒ Object
Ends a Call.
-
#calls_info(options = {}) ⇒ Object
Returns information about a Call.
-
#calls_update(options = {}) ⇒ Object
Updates information about a Call.
Instance Method Details
#calls_add(options = {}) ⇒ Object
Registers a new Call.
30 31 32 33 34 |
# File 'lib/slack/web/api/endpoints/calls.rb', line 30 def calls_add( = {}) raise ArgumentError, 'Required arguments :external_unique_id missing' if [:external_unique_id].nil? raise ArgumentError, 'Required arguments :join_url missing' if [:join_url].nil? post('calls.add', ) end |
#calls_end(options = {}) ⇒ Object
Ends a Call.
45 46 47 48 |
# File 'lib/slack/web/api/endpoints/calls.rb', line 45 def calls_end( = {}) raise ArgumentError, 'Required arguments :id missing' if [:id].nil? post('calls.end', ) end |
#calls_info(options = {}) ⇒ Object
Returns information about a Call.
57 58 59 60 |
# File 'lib/slack/web/api/endpoints/calls.rb', line 57 def calls_info( = {}) raise ArgumentError, 'Required arguments :id missing' if [:id].nil? post('calls.info', ) end |
#calls_update(options = {}) ⇒ Object
Updates information about a Call.
75 76 77 78 |
# File 'lib/slack/web/api/endpoints/calls.rb', line 75 def calls_update( = {}) raise ArgumentError, 'Required arguments :id missing' if [:id].nil? post('calls.update', ) end |