lib/amee/profile.rb in Floppy-amee-0.3.0 vs lib/amee/profile.rb in Floppy-amee-0.3.1
- old
+ new
@@ -39,10 +39,12 @@
profiles << profile
end
end
# Done
return profiles
+ rescue
+ raise AMEE::BadData.new("Couldn't load Profile list.")
end
def self.create(connection)
# Create new profile
response = connection.post('/profiles', :profile => true)
@@ -76,14 +78,16 @@
# Store connection in profile object
profile.connection = connection
# Done
return profile
end
+ rescue
+ raise AMEE::BadData.new("Couldn't create Profile.")
end
- def delete
- # Create new profile
- response = connection.delete(full_path)
- end
+# def delete
+# # Create new profile
+# response = connection.delete(full_path)
+# end
end
-end
\ No newline at end of file
+end