Class: Google::Apis::LanguageV2::XpsTimestampStatsGranularStats
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsTimestampStatsGranularStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Stats split by a defined in context granularity.
Instance Attribute Summary collapse
-
#buckets ⇒ Hash<String,Fixnum>
A map from granularity key to example count for that key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTimestampStatsGranularStats
constructor
A new instance of XpsTimestampStatsGranularStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTimestampStatsGranularStats
Returns a new instance of XpsTimestampStatsGranularStats.
4317 4318 4319 |
# File 'lib/google/apis/language_v2/classes.rb', line 4317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buckets ⇒ Hash<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
4315 4316 4317 |
# File 'lib/google/apis/language_v2/classes.rb', line 4315 def buckets @buckets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4322 4323 4324 |
# File 'lib/google/apis/language_v2/classes.rb', line 4322 def update!(**args) @buckets = args[:buckets] if args.key?(:buckets) end |