Class: Google::Apis::AnalyticsdataV1alpha::CaseExpression

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 convert a dimension value to a single case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CaseExpression

Returns a new instance of CaseExpression.



150
151
152
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 150

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

Instance Attribute Details

#dimension_nameString

Name of a dimension. The name must refer back to a name in dimensions field of the request. Corresponds to the JSON property dimensionName

Returns:

  • (String)


148
149
150
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 148

def dimension_name
  @dimension_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



155
156
157
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 155

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