Class: Google::Apis::AnalyticsreportingV4::ColumnHeader

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb

Overview

Column headers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ColumnHeader

Returns a new instance of ColumnHeader.



109
110
111
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 109

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

Instance Attribute Details

#dimensionsArray<String>

The dimension names in the response. Corresponds to the JSON property dimensions

Returns:

  • (Array<String>)


102
103
104
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 102

def dimensions
  @dimensions
end

#metric_headerGoogle::Apis::AnalyticsreportingV4::MetricHeader

The headers for the metrics. Corresponds to the JSON property metricHeader



107
108
109
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 107

def metric_header
  @metric_header
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 114

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