Class: Paf
- Inherits:
-
Object
- Object
- Paf
- Includes:
- Attribute, Formattable
- Defined in:
- lib/paf.rb,
lib/paf/version.rb,
lib/paf/premises.rb,
lib/paf/attribute.rb,
lib/paf/formattable.rb,
lib/paf/premises/common.rb,
lib/paf/premises/string.rb,
lib/paf/premises/rule000.rb,
lib/paf/premises/rule001.rb,
lib/paf/premises/rule010.rb,
lib/paf/premises/rule011.rb,
lib/paf/premises/rule101.rb,
lib/paf/premises/rule110.rb,
lib/paf/premises/rule111.rb,
lib/paf/thoroughfare_locality.rb
Overview
PAF gem version
Defined Under Namespace
Modules: Attribute, Formattable, Premises, ThoroughfareLocality
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Instance Method Summary collapse
-
#dependent_thoroughfare ⇒ Object
Dependent thoroughfare name and descriptor.
-
#initialize(args) ⇒ Paf
constructor
A new instance of Paf.
-
#po_box ⇒ Object
PO Box number prepended with the string PO BOX.
-
#thoroughfare ⇒ Object
Thoroughfare name and descriptor.
Methods included from Formattable
Constructor Details
#initialize(args) ⇒ Paf
Returns a new instance of Paf.
13 14 15 |
# File 'lib/paf.rb', line 13 def initialize(args) args.each { |k, v| send("#{k}=", v) } end |
Instance Method Details
#dependent_thoroughfare ⇒ Object
Dependent thoroughfare name and descriptor
23 24 25 |
# File 'lib/paf.rb', line 23 def dependent_thoroughfare concatenated(self.class.dependent_thoroughfare_attrs) end |
#po_box ⇒ Object
PO Box number prepended with the string PO BOX
18 19 20 |
# File 'lib/paf.rb', line 18 def po_box "PO BOX #{po_box_number}" unless po_box_number.to_s.empty? end |
#thoroughfare ⇒ Object
Thoroughfare name and descriptor
28 29 30 |
# File 'lib/paf.rb', line 28 def thoroughfare concatenated(self.class.thoroughfare_attrs) end |