Class: Google::Apis::AnalyticsdataV1beta::MetricCompatibility

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricCompatibility

Returns a new instance of MetricCompatibility.



1065
1066
1067
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1065

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

Instance Attribute Details

#compatibilityString

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

Returns:

  • (String)


1058
1059
1060
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1058

def compatibility
  @compatibility
end

#metric_metadataGoogle::Apis::AnalyticsdataV1beta::MetricMetadata

Explains a metric. Corresponds to the JSON property metricMetadata



1063
1064
1065
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1063

def 
  @metric_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1070
1071
1072
1073
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1070

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