Class: Nylas::Calendar
- Inherits:
-
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
#events ⇒ Object
42
43
44
|
# File 'lib/nylas/calendar.rb', line 42
def events
api.events.where(calendar_id: id)
end
|
#primary? ⇒ Boolean
38
39
40
|
# File 'lib/nylas/calendar.rb', line 38
def primary?
is_primary
end
|
#read_only? ⇒ Boolean
34
35
36
|
# File 'lib/nylas/calendar.rb', line 34
def read_only?
read_only == true
end
|