Sha256: e0891e931aa0107d79d16f5cb2f382f7cb83b591cd4f059347057543fe6f1b91

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 Bytes

Contents

module Smartsheet
  class Templates
    attr_reader :client
    private :client

    def initialize(client)
      @client = client
    end

    def list_public(params: {}, header_overrides: {})
      endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['templates', 'public'])
      request_spec = Smartsheet::API::RequestSpec.new(
          header_overrides: header_overrides,
          params: params
      )
      client.make_request(endpoint_spec, request_spec)
    end

    def list(params: {}, header_overrides: {})
      endpoint_spec = Smartsheet::API::EndpointSpec.new(:get, ['templates'])
      request_spec = Smartsheet::API::RequestSpec.new(
          header_overrides: header_overrides,
          params: params
      )
      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/templates/templates.rb
smartsheet-1.0.0.beta.0 lib/smartsheet/endpoints/templates/templates.rb