Class: Google::Apis::AnalyticsV3::UserRef

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

Overview

JSON template for a user reference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserRef

Returns a new instance of UserRef.



5397
5398
5399
# File 'lib/google/apis/analytics_v3/classes.rb', line 5397

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

Instance Attribute Details

#emailString

Email ID of this user. Corresponds to the JSON property email

Returns:

  • (String)


5385
5386
5387
# File 'lib/google/apis/analytics_v3/classes.rb', line 5385

def email
  @email
end

#idString

User ID. Corresponds to the JSON property id

Returns:

  • (String)


5390
5391
5392
# File 'lib/google/apis/analytics_v3/classes.rb', line 5390

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


5395
5396
5397
# File 'lib/google/apis/analytics_v3/classes.rb', line 5395

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5402
5403
5404
5405
5406
# File 'lib/google/apis/analytics_v3/classes.rb', line 5402

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end