slack-ruby/slack-ruby-client

View on GitHub
lib/slack/web/api/endpoints/canvases_sections.rb

Summary

Maintainability
A
20 mins
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module CanvasesSections
          #
          # Find sections matching the provided criteria
          #
          # @option options [Object] :canvas_id
          #   Encoded ID of the canvas.
          # @option options [Object] :criteria
          #   Filtering criteria.
          # @see https://api.slack.com/methods/canvases.sections.lookup
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/canvases.sections/canvases.sections.lookup.json
          def canvases_sections_lookup(options = {})
            raise ArgumentError, 'Required arguments :canvas_id missing' if options[:canvas_id].nil?
            raise ArgumentError, 'Required arguments :criteria missing' if options[:criteria].nil?
            post('canvases.sections.lookup', options)
          end
        end
      end
    end
  end
end