Class: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionByAddressResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/civicinfo_v2/classes.rb,
lib/google/apis/civicinfo_v2/representations.rb,
lib/google/apis/civicinfo_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CivicinfoApiprotosV2DivisionByAddressResponse

Returns a new instance of CivicinfoApiprotosV2DivisionByAddressResponse.



39
40
41
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 39

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

Instance Attribute Details

#divisionsHash<String,Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision>

Corresponds to the JSON property divisions



32
33
34
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 32

def divisions
  @divisions
end

#normalized_inputGoogle::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType

A simple representation of an address. Corresponds to the JSON property normalizedInput



37
38
39
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 37

def normalized_input
  @normalized_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
47
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 44

def update!(**args)
  @divisions = args[:divisions] if args.key?(:divisions)
  @normalized_input = args[:normalized_input] if args.key?(:normalized_input)
end