Class: Pilipinas::Province
Overview
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#cities ⇒ Array<City>
Returns the cities/municipalities belonging to this province.
Methods inherited from Base
#==, all, assoc_collection, count, find_by, find_by_code, find_by_name, first, #hash, #initialize, #inspect, last, method_missing, reset_cache, respond_to_missing?, #to_s
Constructor Details
This class inherits a constructor from Pilipinas::Base
Instance Method Details
#cities ⇒ Array<City>
Returns the cities/municipalities belonging to this province.
Results are cached after the first call.
18 19 20 |
# File 'lib/pilipinas/province.rb', line 18 def cities City.assoc_collection(code: code, dir: :provinces) end |