lib/parse/user.rb in parse-ruby-client-0.1.5 vs lib/parse/user.rb in parse-ruby-client-0.1.6

- old
+ new

@@ -17,28 +17,20 @@ new(response) end def self.reset_password(email) body = {"email" => email} - Parse.client.post(Parse::Protocol::PASSWORD_RESET_URI, body) + Parse.client.post(Parse::Protocol::PASSWORD_RESET_URI, body.to_json) end def initialize(data = nil) - @class_name = Parse::Protocol::CLASS_USER - - #stringify symbol keys data["username"] = data[:username] if data[:username] data["password"] = data[:password] if data[:password] - - if data - parse data - end - - self + super(Parse::Protocol::CLASS_USER, data) end def uri Protocol.user_uri @parse_object_id end end -end \ No newline at end of file +end