Class: Nylas::Resource
- Inherits:
-
Object
- Object
- Nylas::Resource
- Defined in:
- lib/nylas/resources/resource.rb
Overview
NOTE: BaseResource is the base class for all Nylas API resources.
Direct Known Subclasses
Applications, Auth, Calendars, Events, Grants, RedirectUris, Webhooks
Instance Method Summary collapse
-
#initialize(resource_name, sdk_instance) ⇒ Resource
constructor
Initializes a resource.
Constructor Details
#initialize(resource_name, sdk_instance) ⇒ Resource
Initializes a resource.
7 8 9 10 11 12 |
# File 'lib/nylas/resources/resource.rb', line 7 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 |