Sha256: 5a52cb58fe393856ff1d25149e5c82ed1c1d24445d942432a167966956459bd4

Contents?: true

Size: 297 Bytes

Versions: 7

Compression:

Stored size: 297 Bytes

Contents

require 'restful_model'
require 'event'

module Inbox
  class Calendar < RestfulModel

    attr_accessor :name
    attr_accessor :description
    attr_accessor :event_ids

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

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
inbox-0.7.0 lib/calendar.rb
inbox-0.5.0 lib/calendar.rb
inbox-0.4.4 lib/calendar.rb
inbox-0.4.3 lib/calendar.rb
inbox-0.4.2 lib/calendar.rb
inbox-0.4.1 lib/calendar.rb
inbox-0.4.0 lib/calendar.rb