Last active
March 20, 2017 20:27
-
-
Save mskyle/984d66533430af03ed8dcdb98ecc88a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
class Officiant | |
def willing_to_officiate_wedding?(groom, bride, date, location) | |
if busy?(date) | |
return false | |
end | |
if too_far?(location) | |
return false | |
end | |
if !think_should_get_married?(groom, bride) | |
return false | |
end | |
if not_really_interested || generally_too_busy # we understand! | |
return false | |
end | |
if is_minister_of_the_gospel? || willing_to_get_ordained_online? # it's easy and free | |
return true | |
end | |
return false | |
end | |
end | |
dan_pickett = Officiant.new | |
location = "Portland, Maine" | |
date = Date.new(2017, 11, 4) # it's a Saturday, ceremony probably around 4PM | |
dan_pickett.willing_to_officiate_wedding?(zach, kyle, date, location) |
@dpickett - we know this is kind of a crazy request (and a goofy way to ask!) but as we try to figure out how we want our wedding ceremony to work we kept coming back to this problem of who would be the officiant - we wanted someone who was a good speaker, and someone who's equally important to both of us. You were there right at the beginning of our relationship (and without Launch and by extension you we probably would never have met), and if you're interested we would love to have you officiate our wedding (obviously there would be some details to work out).
Please let us know if this script returns true!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There'll be BBQ and good times