Class: Google::Apis::AnalyticsdataV1beta::Filter
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::Filter
- 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
An expression to filter dimension or metric values.
Instance Attribute Summary collapse
-
#between_filter ⇒ Google::Apis::AnalyticsdataV1beta::BetweenFilter
To express that the result needs to be between two numbers (inclusive).
-
#field_name ⇒ String
The dimension name or metric name.
-
#in_list_filter ⇒ Google::Apis::AnalyticsdataV1beta::InListFilter
The result needs to be in a list of string values.
-
#numeric_filter ⇒ Google::Apis::AnalyticsdataV1beta::NumericFilter
Filters for numeric or date values.
-
#string_filter ⇒ Google::Apis::AnalyticsdataV1beta::StringFilter
The filter for string Corresponds to the JSON property
stringFilter
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
917 918 919 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#between_filter ⇒ Google::Apis::AnalyticsdataV1beta::BetweenFilter
To express that the result needs to be between two numbers (inclusive).
Corresponds to the JSON property betweenFilter
892 893 894 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 892 def between_filter @between_filter end |
#field_name ⇒ String
The dimension name or metric name. In most methods, dimensions & metrics can
be used for the first time in this field. However in a RunPivotReportRequest,
this field must be additionally specified by name in the RunPivotReportRequest'
s dimensions or metrics.
Corresponds to the JSON property fieldName
900 901 902 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 900 def field_name @field_name end |
#in_list_filter ⇒ Google::Apis::AnalyticsdataV1beta::InListFilter
The result needs to be in a list of string values.
Corresponds to the JSON property inListFilter
905 906 907 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 905 def in_list_filter @in_list_filter end |
#numeric_filter ⇒ Google::Apis::AnalyticsdataV1beta::NumericFilter
Filters for numeric or date values.
Corresponds to the JSON property numericFilter
910 911 912 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 910 def numeric_filter @numeric_filter end |
#string_filter ⇒ Google::Apis::AnalyticsdataV1beta::StringFilter
The filter for string
Corresponds to the JSON property stringFilter
915 916 917 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 915 def string_filter @string_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
922 923 924 925 926 927 928 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 922 def update!(**args) @between_filter = args[:between_filter] if args.key?(:between_filter) @field_name = args[:field_name] if args.key?(:field_name) @in_list_filter = args[:in_list_filter] if args.key?(:in_list_filter) @numeric_filter = args[:numeric_filter] if args.key?(:numeric_filter) @string_filter = args[:string_filter] if args.key?(:string_filter) end |