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(resource_name, sdk_instance) ⇒ Resource

Initializes a resource.



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

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