Class: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::GoogleAppsScriptTypeUser
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/script_v1/classes.rb,
generated/google/apis/script_v1/representations.rb,
generated/google/apis/script_v1/representations.rb
Overview
A simple user profile resource.
Instance Attribute Summary collapse
-
#domain ⇒ String
The user's domain.
-
#email ⇒ String
The user's identifying email address.
-
#name ⇒ String
The user's display name.
-
#photo_url ⇒ String
The user's photo.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsScriptTypeUser
constructor
A new instance of GoogleAppsScriptTypeUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleAppsScriptTypeUser
Returns a new instance of GoogleAppsScriptTypeUser
666 667 668 |
# File 'generated/google/apis/script_v1/classes.rb', line 666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
The user's domain.
Corresponds to the JSON property domain
649 650 651 |
# File 'generated/google/apis/script_v1/classes.rb', line 649 def domain @domain end |
#email ⇒ String
The user's identifying email address.
Corresponds to the JSON property email
654 655 656 |
# File 'generated/google/apis/script_v1/classes.rb', line 654 def email @email end |
#name ⇒ String
The user's display name.
Corresponds to the JSON property name
659 660 661 |
# File 'generated/google/apis/script_v1/classes.rb', line 659 def name @name end |
#photo_url ⇒ String
The user's photo.
Corresponds to the JSON property photoUrl
664 665 666 |
# File 'generated/google/apis/script_v1/classes.rb', line 664 def photo_url @photo_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
671 672 673 674 675 676 |
# File 'generated/google/apis/script_v1/classes.rb', line 671 def update!(**args) @domain = args[:domain] if args.key?(:domain) @email = args[:email] if args.key?(:email) @name = args[:name] if args.key?(:name) @photo_url = args[:photo_url] if args.key?(:photo_url) end |