Skip to content

Instantly share code, notes, and snippets.

@jcreed
Created September 10, 2021 20:58
Show Gist options
  • Save jcreed/aedfc147d2176053cede2a921f4da5f3 to your computer and use it in GitHub Desktop.
Save jcreed/aedfc147d2176053cede2a921f4da5f3 to your computer and use it in GitHub Desktop.
Test reuse of HSInfo Node
[1] pry(#<high school data::high school info with total gpa>)> parsed_yaml.select{ |record| ['secondary_school_details','updated_secondary_school_details'].include? record['table_name'] }
=> [{"table_name"=>"secondary_school_details",
"id"=>["id-proxy", "3ffcbc17-19bc-4181-9411-450e425da72a"],
"identifier"=>"1806944",
"applicant_id"=>["id-proxy", "d0d151d5-7b7e-48fe-999f-b44063b9ce65"],
"secondary_school_graduation_status_id"=>["lookup-proxy", "secondary_school_graduation_status_by_identifier", "High School Diploma"],
"graduation_date"=>#<Date: 2017-05-01 ((2457875j,0s,0n),+0s,2299161j)>,
"academic_international_performance"=>"",
"international_degree_diploma_name"=>"",
"gpa"=>2.43,
"subject_area_overall_total"=>19.0,
"amended_secondary_school_gpa"=>nil,
"__recordname"=>"UNICAS/0/AcademicHistory/0/HighSchoolsAttended/0/HighSchoolInfo"},
{"table_name"=>"updated_secondary_school_details",
"id"=>["id-proxy", "d8e3eb8b-46ea-4b12-99c5-0ad7f2da2fe6"],
"identifier"=>"1806944",
"applicant_id"=>["id-proxy", "d0d151d5-7b7e-48fe-999f-b44063b9ce65"],
"secondary_school_graduation_status_id"=>["lookup-proxy", "secondary_school_graduation_status_by_identifier", "High School Diploma"],
"graduation_date"=>#<Date: 2017-05-01 ((2457875j,0s,0n),+0s,2299161j)>,
"academic_international_performance"=>"",
"international_degree_diploma_name"=>"",
"gpa"=>3.43,
"subject_area_overall_total"=>19.0,
"amended_secondary_school_gpa"=>nil,
"__recordname"=>"UNICAS/0/AcademicHistory/0/HighSchoolsAttended/0/HighSchoolInfo/updated_ss_details"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment