Class: Nylas::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/nylas/resources/resource.rb

Overview

NOTE: BaseResource is the base class for all Nylas API resources. Used by all Nylas API resources

Instance Method Summary collapse

Constructor Details

#initialize(sdk_instance) ⇒ Resource

Initializes a resource.



8
9
10
11
12
# File 'lib/nylas/resources/resource.rb', line 8

def initialize(sdk_instance)
  @api_key = sdk_instance.api_key
  @api_uri = sdk_instance.api_uri
  @timeout = sdk_instance.timeout
end