Class: Google::Apis::AnalyticsreportingV4::User

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

Overview

Contains information to identify a particular user uniquely.

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

Returns a new instance of User



2050
2051
2052
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2050

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

Instance Attribute Details

#typeString

Type of the user in the request. The field userId is associated with this type. Corresponds to the JSON property type

Returns:

  • (String)


2043
2044
2045
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2043

def type
  @type
end

#user_idString

Unique Id of the user for which the data is being requested. Corresponds to the JSON property userId

Returns:

  • (String)


2048
2049
2050
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2048

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2055
2056
2057
2058
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2055

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @user_id = args[:user_id] if args.key?(:user_id)
end