Class: Google::Apis::LanguageV1::XpsTimestampStatsGranularStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/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.



4603
4604
4605
# File 'lib/google/apis/language_v1/classes.rb', line 4603

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>)


4601
4602
4603
# File 'lib/google/apis/language_v1/classes.rb', line 4601

def buckets
  @buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4608
4609
4610
# File 'lib/google/apis/language_v1/classes.rb', line 4608

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