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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Metadata

Returns a new instance of Metadata.



876
877
878
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 876

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

Instance Attribute Details

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

The dimension descriptions. Corresponds to the JSON property dimensions



864
865
866
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 864

def dimensions
  @dimensions
end

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

The metric descriptions. Corresponds to the JSON property metrics



869
870
871
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 869

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 874

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



881
882
883
884
885
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 881

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