Class: Pemilu::Candidate

Inherits:
Object
  • Object
show all
Defined in:
lib/pemilu/candidate.rb

Instance Attribute Summary collapse

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

#birthplaceObject (readonly)

Returns the value of attribute birthplace.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def birthplace
  @birthplace
end

#date_of_birthObject (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

#districtObject (readonly)

Returns the value of attribute district.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def district
  @district
end

#educationsObject (readonly)

Returns the value of attribute educations.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def educations
  @educations
end

#election_yearObject (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_districtObject (readonly)

Returns the value of attribute electoral_district.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def electoral_district
  @electoral_district
end

#genderObject (readonly)

Returns the value of attribute gender.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def gender
  @gender
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def id
  @id
end

#jobsObject (readonly)

Returns the value of attribute jobs.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def jobs
  @jobs
end

#legislative_bodyObject (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_statusObject (readonly)

Returns the value of attribute marital_status.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def marital_status
  @marital_status
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def name
  @name
end

#name_of_couplesObject (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_childrenObject (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

#ordinalObject (readonly)

Returns the value of attribute ordinal.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def ordinal
  @ordinal
end

#organizationsObject (readonly)

Returns the value of attribute organizations.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def organizations
  @organizations
end

#partyObject (readonly)

Returns the value of attribute party.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def party
  @party
end

#pictureObject (readonly)

Returns the value of attribute picture.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def picture
  @picture
end

#provinceObject (readonly)

Returns the value of attribute province.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def province
  @province
end

#religionObject (readonly)

Returns the value of attribute religion.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def religion
  @religion
end

#sub_districtObject (readonly)

Returns the value of attribute sub_district.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def sub_district
  @sub_district
end

#villageObject (readonly)

Returns the value of attribute village.



3
4
5
# File 'lib/pemilu/candidate.rb', line 3

def village
  @village
end