Class: Google::Apis::CloudsearchV1::MapTile
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MapTile
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Information used to render a map tile image in the proper location on a map.
Instance Attribute Summary collapse
-
#image_url ⇒ Google::Apis::CloudsearchV1::SafeUrlProto
Message containing a string that is safe to use in URL contexts in DOM APIs and HTML documents, where the URL context does not refer to a resource that loads code.
-
#tile_x ⇒ Float
Map tile x coordinate Corresponds to the JSON property
tileX
. -
#tile_y ⇒ Float
Map tile y coordinate Corresponds to the JSON property
tileY
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MapTile
constructor
A new instance of MapTile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MapTile
Returns a new instance of MapTile.
4727 4728 4729 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_url ⇒ Google::Apis::CloudsearchV1::SafeUrlProto
Message containing a string that is safe to use in URL contexts in DOM APIs
and HTML documents, where the URL context does not refer to a resource that
loads code.
Corresponds to the JSON property imageUrl
4715 4716 4717 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4715 def image_url @image_url end |
#tile_x ⇒ Float
Map tile x coordinate
Corresponds to the JSON property tileX
4720 4721 4722 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4720 def tile_x @tile_x end |
#tile_y ⇒ Float
Map tile y coordinate
Corresponds to the JSON property tileY
4725 4726 4727 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4725 def tile_y @tile_y end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4732 4733 4734 4735 4736 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4732 def update!(**args) @image_url = args[:image_url] if args.key?(:image_url) @tile_x = args[:tile_x] if args.key?(:tile_x) @tile_y = args[:tile_y] if args.key?(:tile_y) end |