Class: Google::Apis::AnalyticsdataV1alpha::Entity

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

Overview

The unique identifier of the property whose events are tracked.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity.



578
579
580
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 578

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

Instance Attribute Details

#property_idString

A Google Analytics GA4 property id. To learn more, see where to find your Property ID. Corresponds to the JSON property propertyId

Returns:

  • (String)


576
577
578
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 576

def property_id
  @property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



583
584
585
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 583

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