Class: Google::Apis::AdsenseplatformV1::Address
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseplatformV1::Address
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsenseplatform_v1/classes.rb,
lib/google/apis/adsenseplatform_v1/representations.rb,
lib/google/apis/adsenseplatform_v1/representations.rb
Overview
Address data.
Instance Attribute Summary collapse
-
#address1 ⇒ String
First line of address.
-
#address2 ⇒ String
Second line of address.
-
#city ⇒ String
City.
-
#company ⇒ String
Name of the company.
-
#contact ⇒ String
Contact name of the company.
-
#fax ⇒ String
Fax number with international code (i.e. +441234567890).
-
#phone ⇒ String
Phone number with international code (i.e. +441234567890).
-
#region_code ⇒ String
Country/Region code.
-
#state ⇒ String
State.
-
#zip ⇒ String
Zip/post code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Address
constructor
A new instance of Address.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Address
Returns a new instance of Address.
147 148 149 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address1 ⇒ String
First line of address. Max length 64 bytes or 30 characters.
Corresponds to the JSON property address1
99 100 101 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 99 def address1 @address1 end |
#address2 ⇒ String
Second line of address. Max length 64 bytes or 30 characters.
Corresponds to the JSON property address2
104 105 106 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 104 def address2 @address2 end |
#city ⇒ String
City. Max length 60 bytes or 30 characters.
Corresponds to the JSON property city
109 110 111 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 109 def city @city end |
#company ⇒ String
Name of the company. Max length 255 bytes or 34 characters.
Corresponds to the JSON property company
114 115 116 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 114 def company @company end |
#contact ⇒ String
Contact name of the company. Max length 128 bytes or 34 characters.
Corresponds to the JSON property contact
119 120 121 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 119 def contact @contact end |
#fax ⇒ String
Fax number with international code (i.e. +441234567890).
Corresponds to the JSON property fax
124 125 126 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 124 def fax @fax end |
#phone ⇒ String
Phone number with international code (i.e. +441234567890).
Corresponds to the JSON property phone
129 130 131 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 129 def phone @phone end |
#region_code ⇒ String
Country/Region code. The region is specified as a CLDR region code (e.g. "US",
"FR").
Corresponds to the JSON property regionCode
135 136 137 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 135 def region_code @region_code end |
#state ⇒ String
State. Max length 60 bytes or 30 characters.
Corresponds to the JSON property state
140 141 142 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 140 def state @state end |
#zip ⇒ String
Zip/post code. Max length 10 bytes or 10 characters.
Corresponds to the JSON property zip
145 146 147 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 145 def zip @zip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 152 def update!(**args) @address1 = args[:address1] if args.key?(:address1) @address2 = args[:address2] if args.key?(:address2) @city = args[:city] if args.key?(:city) @company = args[:company] if args.key?(:company) @contact = args[:contact] if args.key?(:contact) @fax = args[:fax] if args.key?(:fax) @phone = args[:phone] if args.key?(:phone) @region_code = args[:region_code] if args.key?(:region_code) @state = args[:state] if args.key?(:state) @zip = args[:zip] if args.key?(:zip) end |