Class: Google::Apis::BigqueryV2::IntRange

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

Overview

Range of an int hyperparameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntRange

Returns a new instance of IntRange.



3457
3458
3459
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3457

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

Instance Attribute Details

#maxFixnum

Max value of the int parameter. Corresponds to the JSON property max

Returns:

  • (Fixnum)


3450
3451
3452
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3450

def max
  @max
end

#minFixnum

Min value of the int parameter. Corresponds to the JSON property min

Returns:

  • (Fixnum)


3455
3456
3457
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3455

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3462
3463
3464
3465
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3462

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