Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range

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

Overview

int 32 range. Both min and max are optional. If only min is set, then the range only has a lower bound. If only max is set, then range only has an upper bound. At least one of min and max must be set. Values are inclusive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1Int32Range

Returns a new instance of GoogleMapsPlacesV1Int32Range.



146
147
148
# File 'lib/google/apis/places_v1/classes.rb', line 146

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

Instance Attribute Details

#maxFixnum

Upper bound. If unset, behavior is documented on the range field. Corresponds to the JSON property max

Returns:

  • (Fixnum)


139
140
141
# File 'lib/google/apis/places_v1/classes.rb', line 139

def max
  @max
end

#minFixnum

Lower bound. If unset, behavior is documented on the range field. Corresponds to the JSON property min

Returns:

  • (Fixnum)


144
145
146
# File 'lib/google/apis/places_v1/classes.rb', line 144

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



151
152
153
154
# File 'lib/google/apis/places_v1/classes.rb', line 151

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