Class: Wagon::PhotoDirectory
Instance Attribute Summary
Attributes inherited from Page
Instance Method Summary collapse
Methods inherited from Page
#get, #initialize, #method_missing, #post, #source
Constructor Details
This class inherits a constructor from Wagon::Page
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wagon::Page
Instance Method Details
#households ⇒ Object
5 6 7 |
# File 'lib/wagon/photo_directory.rb', line 5 def households @households ||= _parse_households end |
#members ⇒ Object
9 10 11 |
# File 'lib/wagon/photo_directory.rb', line 9 def members households.collect(&:members).flatten() end |
#to_pdf(options) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/wagon/photo_directory.rb', line 13 def to_pdf() Prawn::Document.new() do |pdf| households.each do |household| pdf.text household.name end end end |