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.



1085
1086
1087
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1085

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

Instance Attribute Details

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

The comparison descriptions. Corresponds to the JSON property comparisons



1068
1069
1070
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1068

def comparisons
  @comparisons
end

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

The dimension descriptions. Corresponds to the JSON property dimensions



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

def dimensions
  @dimensions
end

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

The metric descriptions. Corresponds to the JSON property metrics



1078
1079
1080
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1078

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1083

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1090
1091
1092
1093
1094
1095
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1090

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