Will the update method I created upate with the current time?


#1



can you check my update method. Did I do this right?

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


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

my_computer = Computer.new("ham", "eggs")