Class: Google::Apis::ScriptV1::GoogleAppsScriptTypeUser

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleAppsScriptTypeUser

Returns a new instance of GoogleAppsScriptTypeUser



611
612
613
# File 'generated/google/apis/script_v1/classes.rb', line 611

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

Instance Attribute Details

#domainString

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

Returns:

  • (String)


594
595
596
# File 'generated/google/apis/script_v1/classes.rb', line 594

def domain
  @domain
end

#emailString

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

Returns:

  • (String)


599
600
601
# File 'generated/google/apis/script_v1/classes.rb', line 599

def email
  @email
end

#nameString

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

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/script_v1/classes.rb', line 604

def name
  @name
end

#photo_urlString

The user's photo. Corresponds to the JSON property photoUrl

Returns:

  • (String)


609
610
611
# File 'generated/google/apis/script_v1/classes.rb', line 609

def photo_url
  @photo_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



616
617
618
619
620
621
# File 'generated/google/apis/script_v1/classes.rb', line 616

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