Sha256: 1fc7da9f315c12721b4b7165c5f8369c3b5d098985e1b7e4fb65b8918a6e1a75

Contents?: true

Size: 437 Bytes

Versions: 12

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

module Nylas
  # NOTE: BaseResource is the base class for all Nylas API resources.
  # Used by all Nylas API resources
  class Resource
    # Initializes a resource.
    def initialize(sdk_instance)
      @api_key = sdk_instance.api_key
      @api_uri = sdk_instance.api_uri
      @timeout = sdk_instance.timeout
    end

    private

    attr_reader :resource_name, :api_key, :api_uri, :timeout
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nylas-6.2.2 lib/nylas/resources/resource.rb
nylas-6.2.1 lib/nylas/resources/resource.rb
nylas-6.2.0 lib/nylas/resources/resource.rb
nylas-6.1.1 lib/nylas/resources/resource.rb
nylas-6.1.0 lib/nylas/resources/resource.rb
nylas-6.0.3 lib/nylas/resources/resource.rb
nylas-6.0.2 lib/nylas/resources/resource.rb
nylas-6.0.1 lib/nylas/resources/resource.rb
nylas-6.0.0 lib/nylas/resources/resource.rb
nylas-6.0.0.beta.4 lib/nylas/resources/resource.rb
nylas-6.0.0.beta.3 lib/nylas/resources/resource.rb
nylas-6.0.0.beta.2 lib/nylas/resources/resource.rb