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.
712 713 714 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 712 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
689 690 691 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 689 def between_filter @between_filter end |
#field_name ⇒ String
The dimension name or metric name. Must be a name defined in dimensions or
metrics.
Corresponds to the JSON property fieldName
695 696 697 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 695 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
700 701 702 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 700 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
705 706 707 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 705 def numeric_filter @numeric_filter end |
#string_filter ⇒ Google::Apis::AnalyticsdataV1beta::StringFilter
The filter for string
Corresponds to the JSON property stringFilter
710 711 712 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 710 def string_filter @string_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
717 718 719 720 721 722 723 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 717 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 |