Class: Smartsheet::DiscussionsAttachments

Inherits:
Object
  • Object
show all
Defined in:
lib/smartsheet/endpoints/sheets/discussions_attachments.rb

Overview

Discussions Attachments Endpoints

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ DiscussionsAttachments

Returns a new instance of DiscussionsAttachments.



8
9
10
# File 'lib/smartsheet/endpoints/sheets/discussions_attachments.rb', line 8

def initialize(client)
  @client = client
end

Instance Method Details

#list(sheet_id:, discussion_id:, params: {}, header_overrides: {}) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/smartsheet/endpoints/sheets/discussions_attachments.rb', line 12

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