diff --git a/lib/mini_kickstarter_db.rb b/lib/mini_kickstarter_db.rb index 069c90e..8602971 100644 --- a/lib/mini_kickstarter_db.rb +++ b/lib/mini_kickstarter_db.rb @@ -38,6 +38,8 @@ def back_project(project_name, given_name, credit_card_number, backing_amount) backing_amount) end + # Explicit field mapping to hide positional details from method consumers. + def find_project_by_project_name(project_name) row = @db.get_first_row('select * from projects where project_name = ?', project_name) return {