Class: Google::Apis::AnalyticsdataV1beta::DimensionExpression

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 express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionExpression

Returns a new instance of DimensionExpression.



747
748
749
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 747

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

Instance Attribute Details

#concatenateGoogle::Apis::AnalyticsdataV1beta::ConcatenateExpression

Used to combine dimension values to a single dimension. Corresponds to the JSON property concatenate



735
736
737
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 735

def concatenate
  @concatenate
end

#lower_caseGoogle::Apis::AnalyticsdataV1beta::CaseExpression

Used to convert a dimension value to a single case. Corresponds to the JSON property lowerCase



740
741
742
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 740

def lower_case
  @lower_case
end

#upper_caseGoogle::Apis::AnalyticsdataV1beta::CaseExpression

Used to convert a dimension value to a single case. Corresponds to the JSON property upperCase



745
746
747
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 745

def upper_case
  @upper_case
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 752

def update!(**args)
  @concatenate = args[:concatenate] if args.key?(:concatenate)
  @lower_case = args[:lower_case] if args.key?(:lower_case)
  @upper_case = args[:upper_case] if args.key?(:upper_case)
end