Class: Pemilu::Candidate
- Inherits:
-
Object
- Object
- Pemilu::Candidate
- Defined in:
- lib/pemilu/candidate.rb
Instance Attribute Summary collapse
-
#birthplace ⇒ Object
readonly
Returns the value of attribute birthplace.
-
#date_of_birth ⇒ Object
readonly
Returns the value of attribute date_of_birth.
-
#district ⇒ Object
readonly
Returns the value of attribute district.
-
#educations ⇒ Object
readonly
Returns the value of attribute educations.
-
#election_year ⇒ Object
readonly
Returns the value of attribute election_year.
-
#electoral_district ⇒ Object
readonly
Returns the value of attribute electoral_district.
-
#gender ⇒ Object
readonly
Returns the value of attribute gender.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#legislative_body ⇒ Object
readonly
Returns the value of attribute legislative_body.
-
#marital_status ⇒ Object
readonly
Returns the value of attribute marital_status.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#name_of_couples ⇒ Object
readonly
Returns the value of attribute name_of_couples.
-
#number_of_children ⇒ Object
readonly
Returns the value of attribute number_of_children.
-
#ordinal ⇒ Object
readonly
Returns the value of attribute ordinal.
-
#organizations ⇒ Object
readonly
Returns the value of attribute organizations.
-
#party ⇒ Object
readonly
Returns the value of attribute party.
-
#picture ⇒ Object
readonly
Returns the value of attribute picture.
-
#province ⇒ Object
readonly
Returns the value of attribute province.
-
#religion ⇒ Object
readonly
Returns the value of attribute religion.
-
#sub_district ⇒ Object
readonly
Returns the value of attribute sub_district.
-
#village ⇒ Object
readonly
Returns the value of attribute village.
Instance Method Summary collapse
Constructor Details
#initialize(id: nil, name: nil, gender: nil, religion: nil, birthplace: nil, date_of_birth: nil, marital_status: nil, name_of_couples: nil, number_of_children: nil, village: nil, sub_district: nil, district: nil, province: nil, electoral_district: nil, election_year: nil, legislative_body: nil, party: nil, ordinal: nil, picture: nil, educations: nil, jobs: nil, organizations: nil) ⇒ Candidate
Returns a new instance of Candidate.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pemilu/candidate.rb', line 5 def initialize( id: nil, name: nil, gender: nil, religion: nil, birthplace: nil, date_of_birth: nil, marital_status: nil, name_of_couples: nil, number_of_children: nil, village: nil, sub_district: nil, district: nil, province: nil, electoral_district: nil, election_year: nil, legislative_body: nil, party: nil, ordinal: nil, picture: nil, educations: nil, jobs: nil, organizations: nil) @id = id @name = name @gender = gender @religion = religion @birthplace = birthplace @date_of_birth = date_of_birth @marital_status = marital_status @name_of_couples = name_of_couples @number_of_children = number_of_children @village = village @sub_district = sub_district @district = district @province = province @electoral_district = electoral_district @election_year = election_year @legislative_body = legislative_body @party = party @ordinal = ordinal @picture = picture @educations = educations @jobs = jobs @organizations = organizations end |
Instance Attribute Details
#birthplace ⇒ Object (readonly)
Returns the value of attribute birthplace.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def birthplace @birthplace end |
#date_of_birth ⇒ Object (readonly)
Returns the value of attribute date_of_birth.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def date_of_birth @date_of_birth end |
#district ⇒ Object (readonly)
Returns the value of attribute district.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def district @district end |
#educations ⇒ Object (readonly)
Returns the value of attribute educations.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def educations @educations end |
#election_year ⇒ Object (readonly)
Returns the value of attribute election_year.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def election_year @election_year end |
#electoral_district ⇒ Object (readonly)
Returns the value of attribute electoral_district.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def electoral_district @electoral_district end |
#gender ⇒ Object (readonly)
Returns the value of attribute gender.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def gender @gender end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def id @id end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def jobs @jobs end |
#legislative_body ⇒ Object (readonly)
Returns the value of attribute legislative_body.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def legislative_body @legislative_body end |
#marital_status ⇒ Object (readonly)
Returns the value of attribute marital_status.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def marital_status @marital_status end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def name @name end |
#name_of_couples ⇒ Object (readonly)
Returns the value of attribute name_of_couples.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def name_of_couples @name_of_couples end |
#number_of_children ⇒ Object (readonly)
Returns the value of attribute number_of_children.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def number_of_children @number_of_children end |
#ordinal ⇒ Object (readonly)
Returns the value of attribute ordinal.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def ordinal @ordinal end |
#organizations ⇒ Object (readonly)
Returns the value of attribute organizations.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def organizations @organizations end |
#party ⇒ Object (readonly)
Returns the value of attribute party.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def party @party end |
#picture ⇒ Object (readonly)
Returns the value of attribute picture.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def picture @picture end |
#province ⇒ Object (readonly)
Returns the value of attribute province.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def province @province end |
#religion ⇒ Object (readonly)
Returns the value of attribute religion.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def religion @religion end |
#sub_district ⇒ Object (readonly)
Returns the value of attribute sub_district.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def sub_district @sub_district end |
#village ⇒ Object (readonly)
Returns the value of attribute village.
3 4 5 |
# File 'lib/pemilu/candidate.rb', line 3 def village @village end |