Class: Google::Apis::AnalyticsdataV1beta::ConcatenateExpression
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::ConcatenateExpression
- 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
-
#delimiter ⇒ String
The delimiter placed between dimension names.
-
#dimension_names ⇒ Array<String>
Names of dimensions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConcatenateExpression
constructor
A new instance of ConcatenateExpression.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#delimiter ⇒ String
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
596 597 598 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 596 def delimiter @delimiter end |
#dimension_names ⇒ Array<String>
Names of dimensions. The names must refer back to names in the dimensions
field of the request.
Corresponds to the JSON property dimensionNames
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 |