Class: Pemilu::Province
- Inherits:
-
Object
- Object
- Pemilu::Province
- Defined in:
- lib/pemilu/province.rb
Instance Attribute Summary collapse
-
#available_chairs ⇒ Object
readonly
Returns the value of attribute available_chairs.
-
#electoral_district ⇒ Object
readonly
Returns the value of attribute electoral_district.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#international_name ⇒ Object
readonly
Returns the value of attribute international_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#population ⇒ Object
readonly
Returns the value of attribute population.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, full_name: nil, international_name: nil, available_chairs: nil, population: nil, electoral_district: nil) ⇒ Province
constructor
A new instance of Province.
Constructor Details
#initialize(id: nil, name: nil, full_name: nil, international_name: nil, available_chairs: nil, population: nil, electoral_district: nil) ⇒ Province
6 7 8 9 10 11 12 13 14 |
# File 'lib/pemilu/province.rb', line 6 def initialize(id: nil, name: nil, full_name: nil, international_name: nil, available_chairs: nil, population: nil, electoral_district: nil) @id = id @name = name @full_name = full_name @international_name = international_name @available_chairs = available_chairs @population = population @electoral_district = electoral_district end |
Instance Attribute Details
#available_chairs ⇒ Object (readonly)
Returns the value of attribute available_chairs.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def available_chairs @available_chairs end |
#electoral_district ⇒ Object (readonly)
Returns the value of attribute electoral_district.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def electoral_district @electoral_district end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def full_name @full_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def id @id end |
#international_name ⇒ Object (readonly)
Returns the value of attribute international_name.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def international_name @international_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def name @name end |
#population ⇒ Object (readonly)
Returns the value of attribute population.
4 5 6 |
# File 'lib/pemilu/province.rb', line 4 def population @population end |