Sha256: 3815d861cc5393db6f7b3e2d8009a01390e6b636275c4095872e73d6af924f23

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

module Smartsheet
  # Sent Update Requests Endpoints
  # @see https://smartsheet-platform.github.io/api-docs/?ruby#update-requests API Update Requests
  #   Docs
  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

4 entries across 4 versions & 1 rubygems

Version Path
smartsheet-2.77.0 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb
smartsheet-1.3.0 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb
smartsheet-1.2.0 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb
smartsheet-1.1.0 lib/smartsheet/endpoints/update_requests/sent_update_requests.rb