Sha256: 1c60f660215aed1e9c0c4feb4ed89b174c744cd94e5616a52799ee4861fd1f1c

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

module Smartsheet
  class SentUpdateRequests
    attr_reader :client
    private :client

    def initialize(client)
      @client = client
    end

    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

    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

    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smartsheet-1.0.0.beta.2 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb
smartsheet-1.0.0.beta.0 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb