3. Private Affairs


#1



https://www.codecademy.com/courses/ruby-beginner-en-32cN3/0/3?curriculum_id=5059f8619189a5000201fbcb


Oops, try again. It looks like your pin_error method doesn't return "Access denied: incorrect PIN."


class Account
    attr_reader :name
    attr_reader :balance
    def initialize(name, balance=100)
        @name = name
        @balance = balance
    end
    private
    
    def pin
        @pin = 1234
    end
    
    def pin_error
        return "Access denied: incorrect PIN"
    end
end


#2

HI this line

return "Access denied: incorrect PIN"

just add a dot after PIN


#3

Ahh, thanks, I didn't see that :smiley:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.