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