Module: MemberCardGenerator

Defined in:
app/models/member_card_generator.rb

Overview

Generates a PDF of member cards.

Generators use a namespace and classes to take advantage of the convention used to include templates in PdfGeneration (ClassName -> partial_name in app/views/pdfs).

Supported Member Card Templates:

* Blanks Usa Id Card 6 (6 cards per 8"x11" page)

To add support for other Member Card templates:

1. Create a class in the MemberCardGenerator namespace and include InstanceMethods
2. Create a partial in app/views/pdfs/member_card_generator using underscored version of the class name (e.g. Avery5361LaminatedIdCards -> avery5361_laminated_id_cards)

Examples:

generator    = MemberCardGenerator::BlanksUsaIdc6.new(members)
download_url = generator.generate

Defined Under Namespace

Modules: InstanceMethods Classes: BlanksUsaIdc6