Class: Google::Apis::AdsenseplatformV1::Address

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#address1String

First line of address. Max length 64 bytes or 30 characters. Corresponds to the JSON property address1

Returns:

  • (String)


99
100
101
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 99

def address1
  @address1
end

#address2String

Second line of address. Max length 64 bytes or 30 characters. Corresponds to the JSON property address2

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 104

def address2
  @address2
end

#cityString

City. Max length 60 bytes or 30 characters. Corresponds to the JSON property city

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 109

def city
  @city
end

#companyString

Name of the company. Max length 255 bytes or 34 characters. Corresponds to the JSON property company

Returns:

  • (String)


114
115
116
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 114

def company
  @company
end

#contactString

Contact name of the company. Max length 128 bytes or 34 characters. Corresponds to the JSON property contact

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 119

def contact
  @contact
end

#faxString

Fax number with international code (i.e. +441234567890). Corresponds to the JSON property fax

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 124

def fax
  @fax
end

#phoneString

Phone number with international code (i.e. +441234567890). Corresponds to the JSON property phone

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 129

def phone
  @phone
end

#region_codeString

Country/Region code. The region is specified as a CLDR region code (e.g. "US", "FR"). Corresponds to the JSON property regionCode

Returns:

  • (String)


135
136
137
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 135

def region_code
  @region_code
end

#stateString

State. Max length 60 bytes or 30 characters. Corresponds to the JSON property state

Returns:

  • (String)


140
141
142
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 140

def state
  @state
end

#zipString

Zip/post code. Max length 10 bytes or 10 characters. Corresponds to the JSON property zip

Returns:

  • (String)


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