Class: GoogleAPI::Configured::Calendar::Event
- Inherits:
-
Object
- Object
- GoogleAPI::Configured::Calendar::Event
- Defined in:
- lib/google_api/configured/event.rb
Instance Attribute Summary collapse
-
#calendar_id ⇒ Object
readonly
Returns the value of attribute calendar_id.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
Class Method Summary collapse
Instance Method Summary collapse
- #add_conference ⇒ Object
- #conference_info(all: false) ⇒ Object
- #delete ⇒ Object
- #get ⇒ Object
-
#initialize(calendar_id, event_id) ⇒ Event
constructor
A new instance of Event.
- #patch(patch_options = {}) ⇒ Object
- #update(event_options = {}) ⇒ Object
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_id ⇒ Object (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_id ⇒ Object (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
Instance Method Details
#add_conference ⇒ Object
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 |
#delete ⇒ Object
30 31 32 |
# File 'lib/google_api/configured/event.rb', line 30 def delete self.class.api.delete(calendar_id, event_id) end |
#get ⇒ Object
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( = {}) self.class.api.patch(calendar_id, event_id, ) end |
#update(event_options = {}) ⇒ Object
26 27 28 |
# File 'lib/google_api/configured/event.rb', line 26 def update( = {}) self.class.api.update(calendar_id, event_id, ) end |