Sha256: aa8e4ae0b1c258a64ef3aa1ef412833ce005e78884c6bae043a74d4b91e9f48d

Contents?: true

Size: 767 Bytes

Versions: 6

Compression:

Stored size: 767 Bytes

Contents

module Smartsheet
  # Discussions Attachments Endpoints
  # @see https://smartsheet-platform.github.io/api-docs/?ruby#attachments API Attachments Docs
  class DiscussionsAttachments
    attr_reader :client
    private :client

    def initialize(client)
      @client = client
    end

    def list(sheet_id:, discussion_id:, params: {}, header_overrides: {})
      endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['sheets', :sheet_id, 'discussions', :discussion_id, 'attachments'])
      request_spec = Smartsheet::API::RequestSpec.new(
          params: params,
          header_overrides: header_overrides,
          sheet_id: sheet_id,
          discussion_id: discussion_id
      )
      client.make_request(endpoint_spec, request_spec)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smartsheet-2.101.1 lib/smartsheet/endpoints/sheets/discussions_attachments.rb
smartsheet-2.101.0 lib/smartsheet/endpoints/sheets/discussions_attachments.rb
smartsheet-2.86.1 lib/smartsheet/endpoints/sheets/discussions_attachments.rb
smartsheet-2.86.0 lib/smartsheet/endpoints/sheets/discussions_attachments.rb
smartsheet-2.77.2 lib/smartsheet/endpoints/sheets/discussions_attachments.rb
smartsheet-1.0.0 lib/smartsheet/endpoints/sheets/discussions_attachments.rb