Class: Google::Apis::AnalyticsdataV1beta::Metadata

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 dimensions, metrics and comparisons currently accepted in reporting methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Metadata

Returns a new instance of Metadata.



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

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

Instance Attribute Details

#comparisonsArray<Google::Apis::AnalyticsdataV1beta::ComparisonMetadata>

The comparison descriptions. Corresponds to the JSON property comparisons



1049
1050
1051
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1049

def comparisons
  @comparisons
end

#dimensionsArray<Google::Apis::AnalyticsdataV1beta::DimensionMetadata>

The dimension descriptions. Corresponds to the JSON property dimensions



1054
1055
1056
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1054

def dimensions
  @dimensions
end

#metricsArray<Google::Apis::AnalyticsdataV1beta::MetricMetadata>

The metric descriptions. Corresponds to the JSON property metrics



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

def metrics
  @metrics
end

#nameString

Resource name of this metadata. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @comparisons = args[:comparisons] if args.key?(:comparisons)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
end