Class: GoogleCalendarApiV2::Response::Calendar

Inherits:
Object
  • Object
show all
Includes:
Base, Base
Defined in:
lib/google_calendar_api_v2/response/calendar.rb

Instance Attribute Summary collapse

Attributes included from Base

#attributes, #response

Attributes included from Base

#connection

Instance Method Summary collapse

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

#eventsObject (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