Class: Google::Apis::AnalyticsV3::GaData::ColumnHeader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ColumnHeader

Returns a new instance of ColumnHeader.



2640
2641
2642
# File 'lib/google/apis/analytics_v3/classes.rb', line 2640

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

Instance Attribute Details

#column_typeString

Column Type. Either DIMENSION or METRIC. Corresponds to the JSON property columnType

Returns:

  • (String)


2626
2627
2628
# File 'lib/google/apis/analytics_v3/classes.rb', line 2626

def column_type
  @column_type
end

#data_typeString

Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc. Corresponds to the JSON property dataType

Returns:

  • (String)


2633
2634
2635
# File 'lib/google/apis/analytics_v3/classes.rb', line 2633

def data_type
  @data_type
end

#nameString

Column name. Corresponds to the JSON property name

Returns:

  • (String)


2638
2639
2640
# File 'lib/google/apis/analytics_v3/classes.rb', line 2638

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2645
2646
2647
2648
2649
# File 'lib/google/apis/analytics_v3/classes.rb', line 2645

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