Class: Google::Apis::CivicinfoV2::ElectionOfficial

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

Overview

Information about individual election officials.

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

Returns a new instance of ElectionOfficial.


584
585
586
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 584

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

Instance Attribute Details

#email_addressString

The email address of the election official. Corresponds to the JSON property emailAddress

Returns:

  • (String)

562
563
564
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 562

def email_address
  @email_address
end

#fax_numberString

The fax number of the election official. Corresponds to the JSON property faxNumber

Returns:

  • (String)

567
568
569
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 567

def fax_number
  @fax_number
end

#nameString

The full name of the election official. Corresponds to the JSON property name

Returns:

  • (String)

572
573
574
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 572

def name
  @name
end

#office_phone_numberString

The office phone number of the election official. Corresponds to the JSON property officePhoneNumber

Returns:

  • (String)

577
578
579
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 577

def office_phone_number
  @office_phone_number
end

#titleString

The title of the election official. Corresponds to the JSON property title

Returns:

  • (String)

582
583
584
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 582

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


589
590
591
592
593
594
595
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 589

def update!(**args)
  @email_address = args[:email_address] if args.key?(:email_address)
  @fax_number = args[:fax_number] if args.key?(:fax_number)
  @name = args[:name] if args.key?(:name)
  @office_phone_number = args[:office_phone_number] if args.key?(:office_phone_number)
  @title = args[:title] if args.key?(:title)
end