Class: Google::Apis::AnalyticsdataV1beta::ConcatenateExpression

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

Used to combine dimension values to a single dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConcatenateExpression

Returns a new instance of ConcatenateExpression.



604
605
606
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 604

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

Instance Attribute Details

#delimiterString

The delimiter placed between dimension names. Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP". Corresponds to the JSON property delimiter

Returns:

  • (String)


596
597
598
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 596

def delimiter
  @delimiter
end

#dimension_namesArray<String>

Names of dimensions. The names must refer back to names in the dimensions field of the request. Corresponds to the JSON property dimensionNames

Returns:

  • (Array<String>)


602
603
604
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 602

def dimension_names
  @dimension_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 609

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