Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Value

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Value

Returns a new instance of Value.



171
172
173
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 171

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

Instance Attribute Details

#countString

Number of times this feature had this value. Corresponds to the JSON property count

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 164

def count
  @count
end

#valueString

The category name. Corresponds to the JSON property value

Returns:

  • (String)


169
170
171
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 169

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



176
177
178
179
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 176

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