Class: Rsvp::Salutation::Widower

Inherits:
Rsvp::Salutation show all
Defined in:
app/models/rsvp/salutation/widower.rb

Instance Attribute Summary

Attributes inherited from Rsvp::Salutation

#family

Instance Method Summary collapse

Methods inherited from Rsvp::Salutation

#initialize, #to_s

Constructor Details

This class inherits a constructor from Rsvp::Salutation

Instance Method Details

#maleObject



3
4
5
# File 'app/models/rsvp/salutation/widower.rb', line 3

def male
  family.people.adult_males.first
end

#templateObject



6
7
8
# File 'app/models/rsvp/salutation/widower.rb', line 6

def template
  "Mr. [[male__first_name]] [[male__last_name]]"
end