Class: GoogleCalendar::Service

Inherits:
ServiceBase show all
Defined in:
lib/googlecalendar/service.rb

Overview

This class interacts with google calendar service. If you want to use ClientLogin for authentication, use this class. If you want to use AuthSub, use ServiceAuthSub.

Constant Summary collapse

AUTH_PATH =

Server Path to authenticate

"/accounts/ClientLogin"

Constants inherited from ServiceBase

GoogleCalendar::ServiceBase::AUTH_SERVER, GoogleCalendar::ServiceBase::CALENDAR_LIST_PATH

Instance Attribute Summary

Attributes inherited from ServiceBase

#logger

Instance Method Summary collapse

Methods inherited from ServiceBase

#calendar_list, #delete, #insert, proxy_addr, proxy_addr=, proxy_pass, proxy_pass=, proxy_port, proxy_port=, proxy_user, proxy_user=, #query, #update

Constructor Details

#initialize(email, pass) ⇒ Service

Returns a new instance of Service.



14
15
16
17
18
19
20
# File 'lib/googlecalendar/service.rb', line 14

def initialize(email, pass)
  @email = email
  @pass = pass
  @session = nil
  @cookie = nil
  @auth = nil
end