Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range
- 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
-
#max ⇒ Fixnum
Upper bound.
-
#min ⇒ Fixnum
Lower bound.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1Int32Range
constructor
A new instance of GoogleMapsPlacesV1Int32Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#max ⇒ Fixnum
Upper bound. If unset, behavior is documented on the range field.
Corresponds to the JSON property max
139 140 141 |
# File 'lib/google/apis/places_v1/classes.rb', line 139 def max @max end |
#min ⇒ Fixnum
Lower bound. If unset, behavior is documented on the range field.
Corresponds to the JSON property min
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 |