Class: Nexo::GoogleDummyCalendarService

Inherits:
CalendarService show all
Defined in:
app/lib/nexo/api_client/google_dummy_calendar_service.rb

Overview

Dummy calendar service

Instance Attribute Summary

Attributes inherited from CalendarService

#integration

Instance Method Summary collapse

Methods inherited from CalendarService

#initialize

Constructor Details

This class inherits a constructor from Nexo::CalendarService

Instance Method Details

#insert(folder, calendar_event) ⇒ Object



5
6
7
8
# File 'app/lib/nexo/api_client/google_dummy_calendar_service.rb', line 5

def insert(folder, calendar_event)
  puts "Dummy: Creating event '#{calendar_event.summary}'"
  ApiResponse.new(payload: "payload", status: :ok, etag: "etag", id: "dummy_id")
end

#insert_calendar(folder) ⇒ Object



20
21
22
23
# File 'app/lib/nexo/api_client/google_dummy_calendar_service.rb', line 20

def insert_calendar(folder)
  puts "Dummy: Creating calendar"
  ApiResponse.new(payload: "payload", status: :ok, etag: "etag", id: "dummy_id")
end

#remove(element) ⇒ Object



15
16
17
18
# File 'app/lib/nexo/api_client/google_dummy_calendar_service.rb', line 15

def remove(element)
  puts "Dummy: Removing event"
  ApiResponse.new(payload: "payload", status: :ok, etag: "etag", id: "dummy_id")
end

#remove_calendar(folder) ⇒ Object



25
26
27
28
# File 'app/lib/nexo/api_client/google_dummy_calendar_service.rb', line 25

def remove_calendar(folder)
  puts "Dummy: Removing calendar"
  ApiResponse.new(payload: "payload", status: :ok, etag: "etag", id: "dummy_id")
end

#update(element) ⇒ Object



10
11
12
13
# File 'app/lib/nexo/api_client/google_dummy_calendar_service.rb', line 10

def update(element)
  puts "Dummy: Updating event"
  ApiResponse.new(payload: "payload", status: :ok, etag: "etag", id: "dummy_id")
end