Class: Camper::Calendar
Instance Attribute Summary
Attributes inherited from APIObject
Instance Method Summary (collapse)
-
- (true, false) delete!
Delete the calendar.
-
- (Camper::Calendar) update!(body)
Update the calendar.
Methods inherited from APIObject
#handle, #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from Camper::APIObject
Instance Method Details
- (true, false) delete!
Delete the calendar
21 22 23 |
# File 'lib/camper/calendar.rb', line 21 def delete! client.delete("calendars/#{id}").success? end |
- (Camper::Calendar) update!(body)
Update the calendar
14 15 16 |
# File 'lib/camper/calendar.rb', line 14 def update!(body) handle client.put("calendars/#{id}", body) end |