Class: Rsvp::Salutation::SingleMaleAndGuest

Inherits:
Rsvp::Salutation
  • Object
show all
Defined in:
app/models/rsvp/salutation/single_male_and_guest.rb

Instance Method Summary collapse

Methods inherited from Rsvp::Salutation

#to_s

Instance Method Details

#maleObject



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

def male
  family.people.adult_males.first
end

#templateObject



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

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