Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution

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

Overview

Score distribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1ScoreDistribution

Returns a new instance of GoogleCloudRecaptchaenterpriseV1ScoreDistribution.



1595
1596
1597
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1595

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

Instance Attribute Details

#score_bucketsHash<String,Fixnum>

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10). Corresponds to the JSON property scoreBuckets

Returns:

  • (Hash<String,Fixnum>)


1593
1594
1595
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1593

def score_buckets
  @score_buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1600
1601
1602
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1600

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