Class: GoogleCalendarApiV2::Response::Calendar
- Inherits:
-
Object
- Object
- GoogleCalendarApiV2::Response::Calendar
- Defined in:
- lib/google_calendar_api_v2/response/calendar.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Attributes included from Base
Attributes included from Base
Instance Method Summary collapse
-
#initialize(response, connection) ⇒ Calendar
constructor
A new instance of Calendar.
Methods included from Base
#[], #[]=, #destroy, #save, #to_json, #token, #update_attributes
Constructor Details
#initialize(response, connection) ⇒ Calendar
Returns a new instance of Calendar.
9 10 11 12 |
# File 'lib/google_calendar_api_v2/response/calendar.rb', line 9 def initialize(response, connection) super @events = GoogleCalendarApiV2::Event.new(@connection, self) end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
7 8 9 |
# File 'lib/google_calendar_api_v2/response/calendar.rb', line 7 def events @events end |