Class: Pilipinas::Barangay

Inherits:
Base
  • Object
show all
Defined in:
lib/pilipinas/barangay.rb

Overview

Represents a barangay (the smallest administrative division) of the Philippines.

Barangays belong to a City or municipality.

Examples:

Pilipinas::Barangay.count  # => 42_027
Pilipinas::Barangay.find_by(name: "Casay")

Instance Attribute Summary

Attributes inherited from Base

#code, #name

Method Summary

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