Class: Google::Apis::StreetviewpublishV1::Level
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Level
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/streetviewpublish_v1/classes.rb,
generated/google/apis/streetviewpublish_v1/representations.rb,
generated/google/apis/streetviewpublish_v1/representations.rb
Overview
Level information containing level number and its corresponding name.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#number ⇒ Float
Floor number, used for ordering.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Level
constructor
A new instance of Level.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Level
Returns a new instance of Level
217 218 219 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. A name assigned to this Level, restricted to 3 characters.
Consider how the elevator buttons would be labeled for this level if there
was an elevator.
Corresponds to the JSON property name
208 209 210 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 208 def name @name end |
#number ⇒ Float
Floor number, used for ordering. 0 indicates the ground level, 1 indicates
the first level above ground level, -1 indicates the first level under
ground level. Non-integer values are OK.
Corresponds to the JSON property number
215 216 217 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 215 def number @number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
222 223 224 225 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 222 def update!(**args) @name = args[:name] if args.key?(:name) @number = args[:number] if args.key?(:number) end |