Class: Google::Apis::Oauth2V1::Userinfoplus
- Inherits:
-
Object
- Object
- Google::Apis::Oauth2V1::Userinfoplus
- 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
-
#email ⇒ String
The user's email address.
-
#family_name ⇒ String
The user's last name.
-
#gender ⇒ String
The user's gender.
-
#given_name ⇒ String
The user's first name.
-
#hd ⇒ String
The hosted domain e.g.
-
#id ⇒ String
The obfuscated ID of the user.
-
#link ⇒ String
URL of the profile page.
-
#locale ⇒ String
The user's preferred locale.
-
#name ⇒ String
The user's full name.
-
#picture ⇒ String
URL of the user's picture image.
-
#verified_email ⇒ Boolean
(also: #verified_email?)
Boolean flag which is true if the email address is verified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Userinfoplus
constructor
A new instance of Userinfoplus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Userinfoplus
Returns a new instance of Userinfoplus.
176 177 178 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
The user's email address.
Corresponds to the JSON property email
122 123 124 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 122 def email @email end |
#family_name ⇒ String
The user's last name.
Corresponds to the JSON property family_name
127 128 129 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 127 def family_name @family_name end |
#gender ⇒ String
The user's gender.
Corresponds to the JSON property gender
132 133 134 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 132 def gender @gender end |
#given_name ⇒ String
The user's first name.
Corresponds to the JSON property given_name
137 138 139 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 137 def given_name @given_name end |
#hd ⇒ String
The hosted domain e.g. example.com if the user is Google apps user.
Corresponds to the JSON property hd
142 143 144 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 142 def hd @hd end |
#id ⇒ String
The obfuscated ID of the user.
Corresponds to the JSON property id
147 148 149 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 147 def id @id end |
#link ⇒ String
URL of the profile page.
Corresponds to the JSON property link
152 153 154 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 152 def link @link end |
#locale ⇒ String
The user's preferred locale.
Corresponds to the JSON property locale
157 158 159 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 157 def locale @locale end |
#name ⇒ String
The user's full name.
Corresponds to the JSON property name
162 163 164 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 162 def name @name end |
#picture ⇒ String
URL of the user's picture image.
Corresponds to the JSON property picture
167 168 169 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 167 def picture @picture end |
#verified_email ⇒ Boolean 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
173 174 175 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 173 def verified_email @verified_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'generated/google/apis/oauth2_v1/classes.rb', line 181 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 |