Class: Google::Apis::AnalyticsdataV1beta::CaseExpression

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



179
180
181
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 179

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)


177
178
179
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 177

def dimension_name
  @dimension_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



184
185
186
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 184

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