call attributes accessors within rails code example
Example: attr_accessor ruby
class Food
attr_accessor :protein
def initialize(protein)
@protein = protein
end
end
class Food
attr_accessor :protein
def initialize(protein)
@protein = protein
end
end