Class: Google::Apis::AnalyticsreportingV4::User
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::User
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsreporting_v4/classes.rb,
lib/google/apis/analyticsreporting_v4/representations.rb,
lib/google/apis/analyticsreporting_v4/representations.rb more...
Overview
Contains information to identify a particular user uniquely.
Instance Attribute Summary collapse
-
#type ⇒ String
Type of the user in the request.
-
#user_id ⇒ String
Unique Id of the user for which the data is being requested.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
1981 1982 1983 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1981 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Type of the user in the request. The field userId
is associated with this
type.
Corresponds to the JSON property type
1974 1975 1976 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1974 def type @type end |
#user_id ⇒ String
Unique Id of the user for which the data is being requested.
Corresponds to the JSON property userId
1979 1980 1981 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1979 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1986 1987 1988 1989 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1986 def update!(**args) @type = args[:type] if args.key?(:type) @user_id = args[:user_id] if args.key?(:user_id) end |