Class: Nylas::EventCollection

Inherits:
Collection show all
Defined in:
lib/nylas/event_collection.rb

Overview

Syntactical sugar methods for some of the Event's filters

Instance Attribute Summary

Attributes inherited from Collection

#api, #constraints, #model

Instance Method Summary collapse

Methods inherited from Collection

#count, #create, #each, #execute, #expanded, #find, #find_each, #find_model, #find_raw, #ids, #initialize, #limit, #more_pages?, #new, #next_page, #offset, #raw, #resources_path, #search, #to_be_executed, #where

Constructor Details

This class inherits a constructor from Nylas::Collection

Instance Method Details

#expand_recurringObject



7
8
9
# File 'lib/nylas/event_collection.rb', line 7

def expand_recurring
  where(expand_recurring: true)
end

#show_cancelledObject



11
12
13
# File 'lib/nylas/event_collection.rb', line 11

def show_cancelled
  where(show_cancelled: true)
end