Ruby project help. Can't get saved instances from array
问题 TLDR I am working on a project that creates instances using an API. I want to be able to recall all of my instances but can't figure out how. I'm relatively new to Ruby and programming in general so I hope I'm explaining everything well enough. Here's my code. class Suggestion attr_accessor :type, :participants attr_reader :activity, :price, :link, :key, :accessibility @@all = [] def initialize(type, participants) @type = type @participants = participants # @activity = [] # @price = price #