Class: Smartsheet::SentUpdateRequests

Inherits:
Object
  • Object
show all
Defined in:
lib/smartsheet/endpoints/update_requests/sent_update_requests.rb

Overview

Sent Update Requests Endpoints

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SentUpdateRequests

Returns a new instance of SentUpdateRequests.



9
10
11
# File 'lib/smartsheet/endpoints/update_requests/sent_update_requests.rb', line 9

def initialize(client)
  @client = client
end

Instance Method Details

#delete(sheet_id:, sent_update_request_id:, params: {}, header_overrides: {}) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/smartsheet/endpoints/update_requests/sent_update_requests.rb', line 13

def delete(sheet_id:, sent_update_request_id:, params: {}, header_overrides: {})
  endpoint_spec = Smartsheet::API::EndpointSpec.new(:delete, ['sheets', :sheet_id, 'sentupdaterequests', :sent_update_request_id])
  request_spec = Smartsheet::API::RequestSpec.new(
      params: params,
      header_overrides: header_overrides,
      sheet_id: sheet_id,
      sent_update_request_id: sent_update_request_id
  )
  client.make_request(endpoint_spec, request_spec)
end

#get(sheet_id:, sent_update_request_id:, params: {}, header_overrides: {}) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/smartsheet/endpoints/update_requests/sent_update_requests.rb', line 24

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

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



35
36
37
38
39
40
41
42
43
# File 'lib/smartsheet/endpoints/update_requests/sent_update_requests.rb', line 35

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