Class: Google::Apis::AnalyticsdataV1alpha::BetweenFilter

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

Overview

To express that the result needs to be between two numbers (inclusive).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BetweenFilter

Returns a new instance of BetweenFilter.



129
130
131
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 129

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

Instance Attribute Details

#from_valueGoogle::Apis::AnalyticsdataV1alpha::NumericValue

To represent a number. Corresponds to the JSON property fromValue



122
123
124
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 122

def from_value
  @from_value
end

#to_valueGoogle::Apis::AnalyticsdataV1alpha::NumericValue

To represent a number. Corresponds to the JSON property toValue



127
128
129
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 127

def to_value
  @to_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



134
135
136
137
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 134

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