Class: Google::Apis::Oauth2V1::Userinfoplus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/oauth2_v1/classes.rb,
generated/google/apis/oauth2_v1/representations.rb,
generated/google/apis/oauth2_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Userinfoplus

Returns a new instance of Userinfoplus



300
301
302
# File 'generated/google/apis/oauth2_v1/classes.rb', line 300

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#emailString

The user's email address. Corresponds to the JSON property email

Returns:

  • (String)


246
247
248
# File 'generated/google/apis/oauth2_v1/classes.rb', line 246

def email
  @email
end

#family_nameString

The user's last name. Corresponds to the JSON property family_name

Returns:

  • (String)


251
252
253
# File 'generated/google/apis/oauth2_v1/classes.rb', line 251

def family_name
  @family_name
end

#genderString

The user's gender. Corresponds to the JSON property gender

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/oauth2_v1/classes.rb', line 256

def gender
  @gender
end

#given_nameString

The user's first name. Corresponds to the JSON property given_name

Returns:

  • (String)


261
262
263
# File 'generated/google/apis/oauth2_v1/classes.rb', line 261

def given_name
  @given_name
end

#hdString

The hosted domain e.g. example.com if the user is Google apps user. Corresponds to the JSON property hd

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/oauth2_v1/classes.rb', line 266

def hd
  @hd
end

#idString

The obfuscated ID of the user. Corresponds to the JSON property id

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/oauth2_v1/classes.rb', line 271

def id
  @id
end

URL of the profile page. Corresponds to the JSON property link

Returns:

  • (String)


276
277
278
# File 'generated/google/apis/oauth2_v1/classes.rb', line 276

def link
  @link
end

#localeString

The user's preferred locale. Corresponds to the JSON property locale

Returns:

  • (String)


281
282
283
# File 'generated/google/apis/oauth2_v1/classes.rb', line 281

def locale
  @locale
end

#nameString

The user's full name. Corresponds to the JSON property name

Returns:

  • (String)


286
287
288
# File 'generated/google/apis/oauth2_v1/classes.rb', line 286

def name
  @name
end

#pictureString

URL of the user's picture image. Corresponds to the JSON property picture

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/oauth2_v1/classes.rb', line 291

def picture
  @picture
end

#verified_emailBoolean Also known as: verified_email?

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

Returns:

  • (Boolean)


297
298
299
# File 'generated/google/apis/oauth2_v1/classes.rb', line 297

def verified_email
  @verified_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



305
306
307
308
309
310
311
312
313
314
315
316
317
# File 'generated/google/apis/oauth2_v1/classes.rb', line 305

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