class Google::Apis::Oauth2V2::Userinfo
Attributes
The user's email address. Corresponds to the JSON property `email` @return [String]
The user's last name. Corresponds to the JSON property `family_name` @return [String]
The user's gender. Corresponds to the JSON property `gender` @return [String]
The user's first name. Corresponds to the JSON property `given_name` @return [String]
The hosted domain e.g. example.com if the user is Google
apps user. Corresponds to the JSON property `hd` @return [String]
The obfuscated ID of the user. Corresponds to the JSON property `id` @return [String]
URL of the profile page. Corresponds to the JSON property `link` @return [String]
The user's preferred locale. Corresponds to the JSON property `locale` @return [String]
The user's full name. Corresponds to the JSON property `name` @return [String]
URL of the user's picture image. Corresponds to the JSON property `picture` @return [String]
Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address. Corresponds to the JSON property `verified_email` @return [Boolean]
Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address. Corresponds to the JSON property `verified_email` @return [Boolean]
Public Class Methods
# File lib/google/apis/oauth2_v2/classes.rb, line 144 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/oauth2_v2/classes.rb, line 149 def update!(**args) @email = args[:email] if args.key?(:email) @family_name = args[:family_name] if args.key?(:family_name) @gender = args[:gender] if args.key?(:gender) @given_name = args[:given_name] if args.key?(:given_name) @hd = args[:hd] if args.key?(:hd) @id = args[:id] if args.key?(:id) @link = args[:link] if args.key?(:link) @locale = args[:locale] if args.key?(:locale) @name = args[:name] if args.key?(:name) @picture = args[:picture] if args.key?(:picture) @verified_email = args[:verified_email] if args.key?(:verified_email) end