Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created October 14, 2017 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Epigene/3847c4aba1b74b21eb5788e1f694552b to your computer and use it in GitHub Desktop.
Save Epigene/3847c4aba1b74b21eb5788e1f694552b to your computer and use it in GitHub Desktop.
Matching author and publisher names?
def with_characteristics?(characteristics_hash)
author.name == characteristics_hash[:author_name] &&
publisher.name == characteristics_hash[:publisher_name]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment