Sha256: 2b698221909b27424c43ac52ef1c7fd2c87b11768c6a03f12b01c3a011bc1ebd

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

require "googlecalendar/service_base"

module GoogleCalendar
  #
  # this class interacts with Google Calendar and uses AuthSub interface for authentication.
  #
  class ServiceAuthSub < ServiceBase

    def initialize(token)
      @auth = token
    end 

  private 
    def add_authorize_header(header)
      header["Authorization"] = "AuthSub token=#{@auth}"
    end
  end # ServiceAuthSub
end # GoogleCalendar

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gcalapi-0.1.0 lib/googlecalendar/service_auth_sub.rb
gcalapi-0.1.1 lib/googlecalendar/service_auth_sub.rb
gcalapi-0.1.2 lib/googlecalendar/service_auth_sub.rb