Class: Google::Apis::AnalyticsV3::Filter::SearchAndReplaceDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analytics_v3/classes.rb,
generated/google/apis/analytics_v3/representations.rb,
generated/google/apis/analytics_v3/representations.rb

Overview

Details for the filter of the type SEARCH_AND_REPLACE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SearchAndReplaceDetails

Returns a new instance of SearchAndReplaceDetails.



2110
2111
2112
# File 'generated/google/apis/analytics_v3/classes.rb', line 2110

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

Instance Attribute Details

#case_sensitiveBoolean Also known as: case_sensitive?

Determines if the filter is case sensitive. Corresponds to the JSON property caseSensitive

Returns:

  • (Boolean)


2087
2088
2089
# File 'generated/google/apis/analytics_v3/classes.rb', line 2087

def case_sensitive
  @case_sensitive
end

#fieldString

Field to use in the filter. Corresponds to the JSON property field

Returns:

  • (String)


2093
2094
2095
# File 'generated/google/apis/analytics_v3/classes.rb', line 2093

def field
  @field
end

#field_indexFixnum

The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. Corresponds to the JSON property fieldIndex

Returns:

  • (Fixnum)


2098
2099
2100
# File 'generated/google/apis/analytics_v3/classes.rb', line 2098

def field_index
  @field_index
end

#replace_stringString

Term to replace the search term with. Corresponds to the JSON property replaceString

Returns:

  • (String)


2103
2104
2105
# File 'generated/google/apis/analytics_v3/classes.rb', line 2103

def replace_string
  @replace_string
end

#search_stringString

Term to search. Corresponds to the JSON property searchString

Returns:

  • (String)


2108
2109
2110
# File 'generated/google/apis/analytics_v3/classes.rb', line 2108

def search_string
  @search_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2115
2116
2117
2118
2119
2120
2121
# File 'generated/google/apis/analytics_v3/classes.rb', line 2115

def update!(**args)
  @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
  @field = args[:field] if args.key?(:field)
  @field_index = args[:field_index] if args.key?(:field_index)
  @replace_string = args[:replace_string] if args.key?(:replace_string)
  @search_string = args[:search_string] if args.key?(:search_string)
end