Class: Pilipinas::Barangay
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
add, all, assoc_collection, count, find_by, first, #initialize, last, load_file, method_missing, parse_attributes, reset_data, select_by, validate
Constructor Details
This class inherits a constructor from Pilipinas::Base
Class Method Details
.load_data ⇒ Object
4 5 6 |
# File 'lib/pilipinas/barangay.rb', line 4 def load_data load_file(File.join(File.dirname(__FILE__), '..', 'data', 'barangays.yml')) end |