Class: MicrosoftGraph::Models::PhysicalOfficeAddress
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::PhysicalOfficeAddress
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/physical_office_address.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#city ⇒ Object
Gets the city property value.
-
#city=(value) ⇒ Object
Sets the city property value.
-
#country_or_region ⇒ Object
Gets the countryOrRegion property value.
-
#country_or_region=(value) ⇒ Object
Sets the countryOrRegion property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new physicalOfficeAddress and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#office_location ⇒ Object
Gets the officeLocation property value.
-
#office_location=(value) ⇒ Object
Sets the officeLocation property value.
-
#postal_code ⇒ Object
Gets the postalCode property value.
-
#postal_code=(value) ⇒ Object
Sets the postalCode property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#street ⇒ Object
Gets the street property value.
-
#street=(value) ⇒ Object
Sets the street property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new physicalOfficeAddress and sets the default values.
67 68 69 |
# File 'lib/models/physical_office_address.rb', line 67 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
90 91 92 93 |
# File 'lib/models/physical_office_address.rb', line 90 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return PhysicalOfficeAddress.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
37 38 39 |
# File 'lib/models/physical_office_address.rb', line 37 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
45 46 47 |
# File 'lib/models/physical_office_address.rb', line 45 def additional_data=(value) @additional_data = value end |
#city ⇒ Object
Gets the city property value. The city.
52 53 54 |
# File 'lib/models/physical_office_address.rb', line 52 def city return @city end |
#city=(value) ⇒ Object
Sets the city property value. The city.
60 61 62 |
# File 'lib/models/physical_office_address.rb', line 60 def city=(value) @city = value end |
#country_or_region ⇒ Object
Gets the countryOrRegion property value. The country or region. It’s a free-format string value, for example, ‘United States’.
74 75 76 |
# File 'lib/models/physical_office_address.rb', line 74 def country_or_region return @country_or_region end |
#country_or_region=(value) ⇒ Object
Sets the countryOrRegion property value. The country or region. It’s a free-format string value, for example, ‘United States’.
82 83 84 |
# File 'lib/models/physical_office_address.rb', line 82 def country_or_region=(value) @country_or_region = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/models/physical_office_address.rb', line 98 def get_field_deserializers() return { "city" => lambda {|n| @city = n.get_string_value() }, "countryOrRegion" => lambda {|n| @country_or_region = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "officeLocation" => lambda {|n| @office_location = n.get_string_value() }, "postalCode" => lambda {|n| @postal_code = n.get_string_value() }, "state" => lambda {|n| @state = n.get_string_value() }, "street" => lambda {|n| @street = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
113 114 115 |
# File 'lib/models/physical_office_address.rb', line 113 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
121 122 123 |
# File 'lib/models/physical_office_address.rb', line 121 def odata_type=(value) @odata_type = value end |
#office_location ⇒ Object
Gets the officeLocation property value. Office location such as building and office number for an organizational contact.
128 129 130 |
# File 'lib/models/physical_office_address.rb', line 128 def office_location return @office_location end |
#office_location=(value) ⇒ Object
Sets the officeLocation property value. Office location such as building and office number for an organizational contact.
136 137 138 |
# File 'lib/models/physical_office_address.rb', line 136 def office_location=(value) @office_location = value end |
#postal_code ⇒ Object
Gets the postalCode property value. The postal code.
143 144 145 |
# File 'lib/models/physical_office_address.rb', line 143 def postal_code return @postal_code end |
#postal_code=(value) ⇒ Object
Sets the postalCode property value. The postal code.
151 152 153 |
# File 'lib/models/physical_office_address.rb', line 151 def postal_code=(value) @postal_code = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/models/physical_office_address.rb', line 159 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("city", @city) writer.write_string_value("countryOrRegion", @country_or_region) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("officeLocation", @office_location) writer.write_string_value("postalCode", @postal_code) writer.write_string_value("state", @state) writer.write_string_value("street", @street) writer.write_additional_data(@additional_data) end |
#state ⇒ Object
Gets the state property value. The state.
174 175 176 |
# File 'lib/models/physical_office_address.rb', line 174 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state.
182 183 184 |
# File 'lib/models/physical_office_address.rb', line 182 def state=(value) @state = value end |
#street ⇒ Object
Gets the street property value. The street.
189 190 191 |
# File 'lib/models/physical_office_address.rb', line 189 def street return @street end |
#street=(value) ⇒ Object
Sets the street property value. The street.
197 198 199 |
# File 'lib/models/physical_office_address.rb', line 197 def street=(value) @street = value end |