Class: Inbox::Calendar

Inherits:
RestfulModel show all
Defined in:
lib/calendar.rb

Instance Attribute Summary collapse

Attributes inherited from RestfulModel

#created_at, #id, #namespace_id

Instance Method Summary collapse

Methods inherited from RestfulModel

#==, #as_json, collection_name, #destroy, #inflate, #initialize, #save!, #update, #url

Constructor Details

This class inherits a constructor from Inbox::RestfulModel

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/calendar.rb', line 8

def description
  @description
end

#event_idsObject

Returns the value of attribute event_ids.



9
10
11
# File 'lib/calendar.rb', line 9

def event_ids
  @event_ids
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#eventsObject



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

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