Class: Google::Apis::SpectrumV1explorer::VcardAddress

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb

Overview

The structure used to represent a street address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VcardAddress

Returns a new instance of VcardAddress



1557
1558
1559
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1557

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

The postal code associated with the address. For example: 94423. Corresponds to the JSON property code

Returns:

  • (String)


1530
1531
1532
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1530

def code
  @code
end

#countryString

The country name. For example: US. Corresponds to the JSON property country

Returns:

  • (String)


1535
1536
1537
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1535

def country
  @country
end

#localityString

The city or local equivalent portion of the address. For example: San Jose. Corresponds to the JSON property locality

Returns:

  • (String)


1540
1541
1542
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1540

def locality
  @locality
end

#poboxString

An optional post office box number. Corresponds to the JSON property pobox

Returns:

  • (String)


1545
1546
1547
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1545

def pobox
  @pobox
end

#regionString

The state or local equivalent portion of the address. For example: CA. Corresponds to the JSON property region

Returns:

  • (String)


1550
1551
1552
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1550

def region
  @region
end

#streetString

The street number and name. For example: 123 Any St. Corresponds to the JSON property street

Returns:

  • (String)


1555
1556
1557
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1555

def street
  @street
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1562
1563
1564
1565
1566
1567
1568
1569
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1562

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @country = args[:country] if args.key?(:country)
  @locality = args[:locality] if args.key?(:locality)
  @pobox = args[:pobox] if args.key?(:pobox)
  @region = args[:region] if args.key?(:region)
  @street = args[:street] if args.key?(:street)
end