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.



4143
4144
4145
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4143

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

Instance Attribute Details

#maxFixnum

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

Returns:

  • (Fixnum)


4136
4137
4138
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4136

def max
  @max
end

#minFixnum

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

Returns:

  • (Fixnum)


4141
4142
4143
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4141

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4148
4149
4150
4151
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4148

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