Class: Google::Apis::LanguageV1beta2::XpsCategoryStatsSingleCategoryStats

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

The statistics of a single CATEGORY value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsCategoryStatsSingleCategoryStats

Returns a new instance of XpsCategoryStatsSingleCategoryStats.



1454
1455
1456
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1454

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

Instance Attribute Details

#countFixnum

The number of occurrences of this value in the series. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1447
1448
1449
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1447

def count
  @count
end

#valueString

The CATEGORY value. Corresponds to the JSON property value

Returns:

  • (String)


1452
1453
1454
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1452

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1459
1460
1461
1462
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1459

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