Class: Google::Apis::AnalyticsdataV1beta::DimensionMetadata

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

Explains a dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionMetadata

Returns a new instance of DimensionMetadata.



648
649
650
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 648

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

Instance Attribute Details

#api_nameString

This dimension's name. Useable in Dimension's name. For example, eventName. Corresponds to the JSON property apiName

Returns:

  • (String)


615
616
617
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 615

def api_name
  @api_name
end

#categoryString

The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together. Corresponds to the JSON property category

Returns:

  • (String)


621
622
623
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 621

def category
  @category
end

#custom_definitionBoolean Also known as: custom_definition?

True if the dimension is a custom dimension for this property. Corresponds to the JSON property customDefinition

Returns:

  • (Boolean)


626
627
628
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 626

def custom_definition
  @custom_definition
end

#deprecated_api_namesArray<String>

Still usable but deprecated names for this dimension. If populated, this dimension is available by either apiName or one of deprecatedApiNames for a period of time. After the deprecation period, the dimension will be available only by apiName. Corresponds to the JSON property deprecatedApiNames

Returns:

  • (Array<String>)


635
636
637
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 635

def deprecated_api_names
  @deprecated_api_names
end

#descriptionString

Description of how this dimension is used and calculated. Corresponds to the JSON property description

Returns:

  • (String)


640
641
642
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 640

def description
  @description
end

#ui_nameString

This dimension's name within the Google Analytics user interface. For example, Event name. Corresponds to the JSON property uiName

Returns:

  • (String)


646
647
648
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 646

def ui_name
  @ui_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
657
658
659
660
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 653

def update!(**args)
  @api_name = args[:api_name] if args.key?(:api_name)
  @category = args[:category] if args.key?(:category)
  @custom_definition = args[:custom_definition] if args.key?(:custom_definition)
  @deprecated_api_names = args[:deprecated_api_names] if args.key?(:deprecated_api_names)
  @description = args[:description] if args.key?(:description)
  @ui_name = args[:ui_name] if args.key?(:ui_name)
end