Class: Rsvp::Salutation::BoyfriendAndGirlfriend
Instance Attribute Summary
#family
Instance Method Summary
collapse
#initialize, #to_s
Instance Method Details
#female ⇒ Object
6
7
8
|
# File 'app/models/rsvp/salutation/boyfriend_and_girlfriend.rb', line 6
def female
family.people.adult_females.first
end
|
#male ⇒ Object
3
4
5
|
# File 'app/models/rsvp/salutation/boyfriend_and_girlfriend.rb', line 3
def male
family.people.adult_males.first
end
|
#template ⇒ Object
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
|