Sha256: bed77a938dcdd6f770ef448d26b6c5931e8f42377748be2d70ca1f2b70eea6b9

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

require 'restful_model'
require 'event'

module Nylas
  class Calendar < RestfulModel

    parameter :name
    parameter :description
    parameter :read_only

    def events
      @events ||= RestfulModelCollection.new(Event, @_api, {:calendar_id=>@id})
    end

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
nylas-3.2.0 lib/calendar.rb
nylas-3.1.1 lib/calendar.rb
nylas-3.1.0 lib/calendar.rb
nylas-shipmnts-3.0.0 lib/calendar.rb
nylas-3.0.0 lib/calendar.rb