Class: Google::Apis::LanguageV1beta2::XpsTimestampStatsGranularStats

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

Overview

Stats split by a defined in context granularity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTimestampStatsGranularStats

Returns a new instance of XpsTimestampStatsGranularStats.



4623
4624
4625
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4623

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

Instance Attribute Details

#bucketsHash<String,Fixnum>

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May). Corresponds to the JSON property buckets

Returns:

  • (Hash<String,Fixnum>)


4621
4622
4623
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4621

def buckets
  @buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4628
4629
4630
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4628

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