Class: PSGC::Barangay
- Inherits:
-
Struct
- Object
- Struct
- PSGC::Barangay
- Defined in:
- lib/psgc/barangay.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#population ⇒ Object
Returns the value of attribute population.
-
#urban ⇒ Object
Returns the value of attribute urban.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/psgc/barangay.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/psgc/barangay.rb', line 2 def name @name end |
#population ⇒ Object
Returns the value of attribute population
2 3 4 |
# File 'lib/psgc/barangay.rb', line 2 def population @population end |
#urban ⇒ Object
Returns the value of attribute urban
2 3 4 |
# File 'lib/psgc/barangay.rb', line 2 def urban @urban end |
Instance Method Details
#is_rural? ⇒ Boolean
6 7 8 |
# File 'lib/psgc/barangay.rb', line 6 def is_rural? !urban end |
#is_urban? ⇒ Boolean
3 4 5 |
# File 'lib/psgc/barangay.rb', line 3 def is_urban? urban end |