Class: Google::Apis::AnalyticsdataV1alpha::ConcatenateExpression

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsdata_v1alpha/classes.rb,
generated/google/apis/analyticsdata_v1alpha/representations.rb,
generated/google/apis/analyticsdata_v1alpha/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.



330
331
332
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 330

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)


322
323
324
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 322

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>)


328
329
330
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 328

def dimension_names
  @dimension_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



335
336
337
338
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 335

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