Instantiation nation help please


#1



https://www.codecademy.com/courses/ruby-beginner-en-X5wcR/0/7?curriculum_id=5059f8619189a5000201fbcb


I have tried everything I can think of and looked at several other threads and code and still cannot come up with the correct fix. Any and all help would be appreciated. Thanks in advance.
undefined local variable or 'password' for #0x000000008e1200 @username="derek>"


class Computer
    @@users = {}

    
  def  initialize(username,passowrd)
      @username = username
      @password = password
      @@users [username] = password
      @files = {}
  end
end

def create(filename)
    time = Time.now
    @files[filename] = time
    puts "#{filename} was created by #{@username} at #{time}"
end

def Computer.get_users
     @@users
end

my_computer = Computer.new("derek", "blow")


#2

@derk21,

Have a close look at

passowrd


#3

thanks so much......I have stared at that for roughly three hours and could not figure out where it was wrong


#4

@derk21,
That is proof of

The time spend on code
does not tell something about the quality of this code


#5

This thread totally helped when I was stuck on this lesson. I spent a good 4 hours looking at different threads and codes; can you spot why I felt so dumb when I found my error? and the system was trying to tell me all along, just wasn't listening apparently.

class Computer
@@users = {}
def initialize(unsername, password)
@username = username
@password = password
@files = {}
@@users[username] = password
end
def create(filename)
time = Time.now
@files[filename] = time
puts "#{filename} was created by #{username} at #{time}."
end
def Computer.get_users
@@users
end

end
my_computer = Computer.new("Shake", "Bake")

my question is? wouldn't this have come up as an error earlier in this lesson? or did the course change some of our code to see if we're paying attention???? Y2K