Class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::MetricHeaderEntry
- 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
Header for the metrics.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the header.
-
#type ⇒ String
The type of the metric, for example
INTEGER
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricHeaderEntry
constructor
A new instance of MetricHeaderEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetricHeaderEntry
Returns a new instance of MetricHeaderEntry.
1286 1287 1288 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1286 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the header.
Corresponds to the JSON property name
1284 1285 1286 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1284 def name @name end |
#type ⇒ String
The type of the metric, for example INTEGER
.
Corresponds to the JSON property type
1279 1280 1281 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1279 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1291 1292 1293 1294 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1291 def update!(**args) @type = args[:type] if args.key?(:type) @name = args[:name] if args.key?(:name) end |