Class: Google::Apis::AnalyticsdataV1beta::MetricCompatibility
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::MetricCompatibility
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
The compatibility for a single metric.
Instance Attribute Summary collapse
-
#compatibility ⇒ String
The compatibility of this metric.
-
#metric_metadata ⇒ Google::Apis::AnalyticsdataV1beta::MetricMetadata
Explains a metric.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricCompatibility
constructor
A new instance of MetricCompatibility.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricCompatibility
Returns a new instance of MetricCompatibility.
1143 1144 1145 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compatibility ⇒ String
The compatibility of this metric. If the compatibility is COMPATIBLE, this
metric can be successfully added to the report.
Corresponds to the JSON property compatibility
1136 1137 1138 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1136 def compatibility @compatibility end |
#metric_metadata ⇒ Google::Apis::AnalyticsdataV1beta::MetricMetadata
Explains a metric.
Corresponds to the JSON property metricMetadata
1141 1142 1143 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1141 def @metric_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1148 1149 1150 1151 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1148 def update!(**args) @compatibility = args[:compatibility] if args.key?(:compatibility) @metric_metadata = args[:metric_metadata] if args.key?(:metric_metadata) end |