Class: Azure::ARM::Web::Models::Address
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::Address
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/address.rb
Overview
Address information for domain registration.
Instance Attribute Summary collapse
-
#address1 ⇒ String
Address 1.
-
#address2 ⇒ String
Address 2.
-
#city ⇒ String
City.
-
#country ⇒ String
Country.
-
#postal_code ⇒ String
Postal code.
-
#state ⇒ String
State.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Address class as Ruby Hash.
Instance Attribute Details
#address1 ⇒ String
Returns Address 1.
17 18 19 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 17 def address1 @address1 end |
#address2 ⇒ String
Returns Address 2.
20 21 22 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 20 def address2 @address2 end |
#city ⇒ String
Returns City.
23 24 25 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 23 def city @city end |
#country ⇒ String
Returns Country.
26 27 28 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 26 def country @country end |
#postal_code ⇒ String
Returns Postal code.
29 30 31 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 29 def postal_code @postal_code end |
#state ⇒ String
Returns State.
32 33 34 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 32 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for Address class as Ruby Hash. This will be used for serialization/deserialization.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 39 def self.mapper() { required: false, serialized_name: 'Address', type: { name: 'Composite', class_name: 'Address', model_properties: { address1: { required: true, serialized_name: 'address1', type: { name: 'String' } }, address2: { required: false, serialized_name: 'address2', type: { name: 'String' } }, city: { required: true, serialized_name: 'city', type: { name: 'String' } }, country: { required: true, serialized_name: 'country', type: { name: 'String' } }, postal_code: { required: true, serialized_name: 'postalCode', type: { name: 'String' } }, state: { required: true, serialized_name: 'state', type: { name: 'String' } } } } } end |