Class: GoogleAPI::Configured::Calendar::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/google_api/configured/event.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(calendar_id, event_id) ⇒ Event

Returns a new instance of Event.



13
14
15
16
# File 'lib/google_api/configured/event.rb', line 13

def initialize(calendar_id, event_id)
  @calendar_id = calendar_id
  @event_id = event_id
end

Instance Attribute Details

#calendar_idObject (readonly)

Returns the value of attribute calendar_id.



11
12
13
# File 'lib/google_api/configured/event.rb', line 11

def calendar_id
  @calendar_id
end

#event_idObject (readonly)

Returns the value of attribute event_id.



11
12
13
# File 'lib/google_api/configured/event.rb', line 11

def event_id
  @event_id
end

Class Method Details

.apiObject



7
8
9
# File 'lib/google_api/configured/event.rb', line 7

def self.api
  @api ||= GoogleAPI::Calendar.new
end

Instance Method Details

#add_conferenceObject



34
35
36
# File 'lib/google_api/configured/event.rb', line 34

def add_conference
  self.class.api.add_conference(calendar_id, event_id)
end

#conference_info(all: false) ⇒ Object



38
39
40
# File 'lib/google_api/configured/event.rb', line 38

def conference_info(all: false)
  self.class.api.conference_info(calendar_id, event_id, all: all)
end

#deleteObject



30
31
32
# File 'lib/google_api/configured/event.rb', line 30

def delete
  self.class.api.delete(calendar_id, event_id)
end

#getObject



18
19
20
# File 'lib/google_api/configured/event.rb', line 18

def get
  self.class.api.get(calendar_id, event_id)
end

#patch(patch_options = {}) ⇒ Object



22
23
24
# File 'lib/google_api/configured/event.rb', line 22

def patch(patch_options = {})
  self.class.api.patch(calendar_id, event_id, patch_options)
end

#update(event_options = {}) ⇒ Object



26
27
28
# File 'lib/google_api/configured/event.rb', line 26

def update(event_options = {})
  self.class.api.update(calendar_id, event_id, event_options)
end