Class: GoogleAPI::Configured::Calendar
- Inherits:
-
Object
- Object
- GoogleAPI::Configured::Calendar
- Defined in:
- lib/google_api/configured/event.rb,
lib/google_api/configured/calendar.rb
Defined Under Namespace
Classes: Event
Instance Attribute Summary collapse
-
#calendar_id ⇒ Object
readonly
Returns the value of attribute calendar_id.
Class Method Summary collapse
Instance Method Summary collapse
- #add_conference(event_id) ⇒ Object
- #clear_test_calendar(page_token: nil, page_limit: 50, verbose: false, error: false) ⇒ Object
- #conference_info(event_id, all: false) ⇒ Object
- #create(event_options = {}) ⇒ Object
- #delete(event_id) ⇒ Object
- #get(event_id) ⇒ Object
-
#initialize(calendar_id) ⇒ Calendar
constructor
A new instance of Calendar.
- #list(max_results: 2500, page_token: nil) ⇒ Object
- #list_all ⇒ Object
- #patch(event_id, event_options = {}) ⇒ Object
- #permit(user = nil, email: nil) ⇒ Object
- #unpermit(user = nil, calendar_rule_id: nil) ⇒ Object
- #update(event_id, event_options = {}) ⇒ Object
Constructor Details
#initialize(calendar_id) ⇒ Calendar
Returns a new instance of Calendar.
12 13 14 |
# File 'lib/google_api/configured/calendar.rb', line 12 def initialize(calendar_id) @calendar_id = calendar_id end |
Instance Attribute Details
#calendar_id ⇒ Object (readonly)
Returns the value of attribute calendar_id.
10 11 12 |
# File 'lib/google_api/configured/calendar.rb', line 10 def calendar_id @calendar_id end |
Class Method Details
Instance Method Details
#add_conference(event_id) ⇒ Object
58 59 60 |
# File 'lib/google_api/configured/calendar.rb', line 58 def add_conference(event_id) self.class.api.add_conference(calendar_id, event_id) end |
#clear_test_calendar(page_token: nil, page_limit: 50, verbose: false, error: false) ⇒ Object
52 53 54 55 56 |
# File 'lib/google_api/configured/calendar.rb', line 52 def clear_test_calendar(page_token: nil, page_limit: 50, verbose: false, error: false) self.class.api.clear_test_calendar( page_token: page_token, page_limit: page_limit, verbose: verbose, error: error ) end |
#conference_info(event_id, all: false) ⇒ Object
62 63 64 65 66 |
# File 'lib/google_api/configured/calendar.rb', line 62 def conference_info(event_id, all: false) return self.class.api.send(:conference_mock) if GoogleAPI.mock self.class.api.conference_info(calendar_id, event_id, all: all) end |
#create(event_options = {}) ⇒ Object
24 25 26 |
# File 'lib/google_api/configured/calendar.rb', line 24 def create( = {}) self.class.api.create(calendar_id, ) end |
#delete(event_id) ⇒ Object
40 41 42 |
# File 'lib/google_api/configured/calendar.rb', line 40 def delete(event_id) self.class.api.delete(calendar_id, event_id) end |
#get(event_id) ⇒ Object
28 29 30 |
# File 'lib/google_api/configured/calendar.rb', line 28 def get(event_id) self.class.api.get(calendar_id, event_id) end |
#list(max_results: 2500, page_token: nil) ⇒ Object
16 17 18 |
# File 'lib/google_api/configured/calendar.rb', line 16 def list(max_results: 2500, page_token: nil) self.class.api.list(calendar_id, max_results: max_results, page_token: page_token) end |
#list_all ⇒ Object
20 21 22 |
# File 'lib/google_api/configured/calendar.rb', line 20 def list_all self.class.api.list_all(calendar_id) end |
#patch(event_id, event_options = {}) ⇒ Object
32 33 34 |
# File 'lib/google_api/configured/calendar.rb', line 32 def patch(event_id, = {}) self.class.api.patch(calendar_id, event_id, ) end |
#permit(user = nil, email: nil) ⇒ Object
44 45 46 |
# File 'lib/google_api/configured/calendar.rb', line 44 def permit(user = nil, email: nil) self.class.api.permit(calendar_id, user, email: email) end |
#unpermit(user = nil, calendar_rule_id: nil) ⇒ Object
48 49 50 |
# File 'lib/google_api/configured/calendar.rb', line 48 def unpermit(user = nil, calendar_rule_id: nil) self.class.api.unpermit(calendar_id, user, calendar_rule_id: calendar_rule_id) end |
#update(event_id, event_options = {}) ⇒ Object
36 37 38 |
# File 'lib/google_api/configured/calendar.rb', line 36 def update(event_id, = {}) self.class.api.update(calendar_id, event_id, ) end |