Class: Nylas::Calendar

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/nylas/calendar.rb

Overview

Ruby bindings for the Nylas Calendar API

Instance Attribute Summary

Attributes included from Model

#api

Instance Method Summary collapse

Methods included from Model

#auth_method, #create, #destroy, #execute, included, #model_class, #persisted?, #reload, #resource_path, #resources_path, #save, #save_all_attributes, #to_json, #update, #update_all_attributes

Instance Method Details

#eventsObject



35
36
37
# File 'lib/nylas/calendar.rb', line 35

def events
  api.events.where(calendar_id: id)
end

#primary?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/nylas/calendar.rb', line 31

def primary?
  is_primary
end

#read_only?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/nylas/calendar.rb', line 27

def read_only?
  read_only == true
end