Class: Google::Apis::CivicinfoV2::DivisionByAddressResponse

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) ⇒ DivisionByAddressResponse

Returns a new instance of DivisionByAddressResponse.



458
459
460
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 458

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

Instance Attribute Details

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

Corresponds to the JSON property divisions



451
452
453
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 451

def divisions
  @divisions
end

#normalized_inputGoogle::Apis::CivicinfoV2::SimpleAddressType

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



456
457
458
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 456

def normalized_input
  @normalized_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



463
464
465
466
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 463

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