Class: Rsvp::Salutation::BoyfriendAndGirlfriend

Inherits:
Rsvp::Salutation show all
Defined in:
app/models/rsvp/salutation/boyfriend_and_girlfriend.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

#femaleObject



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

def female
  family.people.adult_females.first
end

#maleObject



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

def male
  family.people.adult_males.first
end

#templateObject



9
10
11
# File 'app/models/rsvp/salutation/boyfriend_and_girlfriend.rb', line 9

def template
  "Mr. [[male__first_name]] [[male__last_name]] and Ms. [[female__first_name]] [[female__last_name]]"
end