# File lib/gdata/auth/authsub.rb, line 44 def initialize(token, options = {}) if token.nil? raise ArgumentError, "Token cannot be nil." elsif token.class != String raise ArgumentError, "Token must be a String." end @token = token options.each do |key, value| self.send("#{key}=", value) end end