Class: Google::Apis::CivicinfoV2::VoterInfoSegmentResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VoterInfoSegmentResult

Returns a new instance of VoterInfoSegmentResult.



1935
1936
1937
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1935

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

Instance Attribute Details

#generated_millisFixnum

Corresponds to the JSON property generatedMillis

Returns:

  • (Fixnum)


1918
1919
1920
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1918

def generated_millis
  @generated_millis
end

#postal_addressGoogle::Apis::CivicinfoV2::PostalAddress

Corresponds to the JSON property postalAddress



1923
1924
1925
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1923

def postal_address
  @postal_address
end

#requestGoogle::Apis::CivicinfoV2::VoterInfoRequest

A request for information about a voter. Corresponds to the JSON property request



1928
1929
1930
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1928

def request
  @request
end

#responseGoogle::Apis::CivicinfoV2::VoterInfoResponse

The result of a voter info lookup query. Corresponds to the JSON property response



1933
1934
1935
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1933

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1940
1941
1942
1943
1944
1945
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1940

def update!(**args)
  @generated_millis = args[:generated_millis] if args.key?(:generated_millis)
  @postal_address = args[:postal_address] if args.key?(:postal_address)
  @request = args[:request] if args.key?(:request)
  @response = args[:response] if args.key?(:response)
end