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

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

Overview

JSON template for a user reference.

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) ⇒ UserRef

Returns a new instance of UserRef.



5152
5153
5154
# File 'generated/google/apis/analytics_v3/classes.rb', line 5152

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

Instance Attribute Details

#emailString

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

Returns:

  • (String)


5140
5141
5142
# File 'generated/google/apis/analytics_v3/classes.rb', line 5140

def email
  @email
end

#idString

User ID. Corresponds to the JSON property id

Returns:

  • (String)


5145
5146
5147
# File 'generated/google/apis/analytics_v3/classes.rb', line 5145

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


5150
5151
5152
# File 'generated/google/apis/analytics_v3/classes.rb', line 5150

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5157
5158
5159
5160
5161
# File 'generated/google/apis/analytics_v3/classes.rb', line 5157

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