I am trying to create a User class in Ruby On Rails App, and when I call
NETWORKING::User.new(1,"Testing") , it returns *** ArgumentError Exception: wrong number of arguments (2 for 0)
Not sure why?
class NETWORKING::User
mattr_writer :id, :name
class << self
def initialize(id, name)
@id = id
@fullname = name
end
end
end
class << self, what did you think that would accomplish here?