Class: Calendar
- Defined in:
- lib/app/models/calendar.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Component
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Object
def as_json self.attributes end.
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( = {}) r = { :guid => "/calendars/#{self.id}", :id => self.id, :ical => self.ical } r end |