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.
845 846 847 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 845 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
820 821 822 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 820 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
828 829 830 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 828 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
833 834 835 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 833 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
838 839 840 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 838 def numeric_filter @numeric_filter end |
#string_filter ⇒ Google::Apis::AnalyticsdataV1beta::StringFilter
The filter for string
Corresponds to the JSON property stringFilter
843 844 845 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 843 def string_filter @string_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
850 851 852 853 854 855 856 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 850 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 |