Class: Google::Apis::AnalyticsV3::RealtimeData::ColumnHeader

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

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



4483
4484
4485
# File 'generated/google/apis/analytics_v3/classes.rb', line 4483

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)


4469
4470
4471
# File 'generated/google/apis/analytics_v3/classes.rb', line 4469

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)


4476
4477
4478
# File 'generated/google/apis/analytics_v3/classes.rb', line 4476

def data_type
  @data_type
end

#nameString

Column name. Corresponds to the JSON property name

Returns:

  • (String)


4481
4482
4483
# File 'generated/google/apis/analytics_v3/classes.rb', line 4481

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4488
4489
4490
4491
4492
# File 'generated/google/apis/analytics_v3/classes.rb', line 4488

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