1class User 2 def initialize(row) 3 @row = row 4 end 5 6 def app_metadata 7 @row.fetch("app_metadata", {}) 8 end 9end