Class: Google::Apis::AnalyticsdataV1alpha::Metadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsdata_v1alpha/classes.rb,
lib/google/apis/analyticsdata_v1alpha/representations.rb,
lib/google/apis/analyticsdata_v1alpha/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.



735
736
737
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 735

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

Instance Attribute Details

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

The dimension descriptions. Corresponds to the JSON property dimensions



723
724
725
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 723

def dimensions
  @dimensions
end

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

The metric descriptions. Corresponds to the JSON property metrics



728
729
730
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 728

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


733
734
735
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 733

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



740
741
742
743
744
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 740

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