Class: Paf
- Inherits:
-
Object
- Object
- Paf
- Includes:
- Attribute, Formattable
- Defined in:
- lib/paf.rb,
lib/paf/version.rb,
lib/paf/lineable.rb,
lib/paf/premises.rb,
lib/paf/attribute.rb,
lib/paf/formatter.rb,
lib/paf/formattable.rb,
lib/paf/core_ext/array.rb,
lib/paf/hash_formatter.rb,
lib/paf/array_formatter.rb,
lib/paf/core_ext/object.rb,
lib/paf/core_ext/string.rb,
lib/paf/premises/common.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/string_formatter.rb,
lib/paf/thoroughfare_locality.rb
Overview
PAF gem version
Defined Under Namespace
Modules: Attribute, CoreExt, Formattable, Lineable, Premises, ThoroughfareLocality Classes: ArrayFormatter, Formatter, HashFormatter, StringFormatter
Constant Summary collapse
- VERSION =
'0.5.0'.freeze
Instance Attribute Summary
Attributes included from Formattable
#concatenation_indicator, #formatter
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.
16 17 18 |
# File 'lib/paf.rb', line 16 def initialize(args) args.each { |k, v| send("#{k}=", v) } end |
Instance Method Details
#dependent_thoroughfare ⇒ Object
Dependent thoroughfare name and descriptor
26 27 28 |
# File 'lib/paf.rb', line 26 def dependent_thoroughfare concatenated(self.class.dependent_thoroughfare_attrs) end |
#po_box ⇒ Object
PO Box number prepended with the string PO BOX
21 22 23 |
# File 'lib/paf.rb', line 21 def po_box "PO BOX #{po_box_number}" unless po_box_number.vacant? end |
#thoroughfare ⇒ Object
Thoroughfare name and descriptor
31 32 33 |
# File 'lib/paf.rb', line 31 def thoroughfare concatenated(self.class.thoroughfare_attrs) end |