Class: Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb
Overview
Model object.
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#_type ⇒ Object
Returns the value of attribute _type.
- #elevation ⇒ Float
- #latitude ⇒ Float
- #longitude ⇒ Float
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GeoCoordinates class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ GeoCoordinates
constructor
A new instance of GeoCoordinates.
Constructor Details
#initialize ⇒ GeoCoordinates
Returns a new instance of GeoCoordinates.
18 19 20 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 18 def initialize @_type = "GeoCoordinates" end |
Instance Attribute Details
#_type ⇒ Object
Returns the value of attribute _type.
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 22 def _type @_type end |
#elevation ⇒ Float
31 32 33 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 31 def elevation @elevation end |
#latitude ⇒ Float
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 25 def latitude @latitude end |
#longitude ⇒ Float
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 28 def longitude @longitude end |
Class Method Details
.mapper ⇒ Object
Mapper for GeoCoordinates class as Ruby Hash. This will be used for serialization/deserialization.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/geo_coordinates.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GeoCoordinates', type: { name: 'Composite', polymorphic_discriminator: '_type', uber_parent: 'GeoCoordinates', class_name: 'GeoCoordinates', model_properties: { latitude: { client_side_validation: true, required: true, serialized_name: 'latitude', type: { name: 'Double' } }, longitude: { client_side_validation: true, required: true, serialized_name: 'longitude', type: { name: 'Double' } }, elevation: { client_side_validation: true, required: false, read_only: true, serialized_name: 'elevation', type: { name: 'Double' } } } } } end |