Class: Google::Apis::DatastoreV1beta3::Avg

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

Overview

Average of the values of the requested property. * Only numeric values will be aggregated. All non-numeric values including NULL are skipped. * If the aggregated values contain NaN, returns NaN. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns NULL. * Always returns the result as a double.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Avg

Returns a new instance of Avg.



244
245
246
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 244

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

Instance Attribute Details

#propertyGoogle::Apis::DatastoreV1beta3::PropertyReference

A reference to a property relative to the kind expressions. Corresponds to the JSON property property



242
243
244
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 242

def property
  @property
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



249
250
251
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 249

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