Class: Calendar

Inherits:
Component
  • Object
show all
Defined in:
lib/app/models/calendar.rb

Direct Known Subclasses

SubCalendar

Instance Attribute Summary

Attributes inherited from Component

#component

Instance Method Summary collapse

Methods inherited from Component

#add_component, base_class, #belongs_to, class_of_active_record_descendant, #component_names, #components, compute_table_name, #reset_component, reset_table_name, #set_component, table_name, #to_ical, #trigger_parent_component

Instance Method Details

#as_json(options = {}) ⇒ Object

def as_json

  self.attributes
end


12
13
14
15
16
17
18
19
# File 'lib/app/models/calendar.rb', line 12

def as_json(options = {})
  r = {
    :guid => "/calendars/#{self.id}",
    :id => self.id,
    :ical => self.ical
  }
  r
end