Floppy-amee 0.4.15 → 0.4.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/profile_item.rb +6 -0
- data/lib/amee/version.rb +1 -1
- metadata +1 -1
data/lib/amee/profile_item.rb
CHANGED
@@ -109,6 +109,12 @@ module AMEE
|
|
109
109
|
raise AMEE::BadData.new("Couldn't update ProfileItem. Check that your information is correct.")
|
110
110
|
end
|
111
111
|
|
112
|
+
def self.delete(connection, path)
|
113
|
+
connection.delete(path)
|
114
|
+
rescue
|
115
|
+
raise AMEE::BadData.new("Couldn't delete ProfileItem. Check that your information is correct.")
|
116
|
+
end
|
117
|
+
|
112
118
|
def value(name_or_path)
|
113
119
|
val = values.find{ |x| x[:name] == name_or_path || x[:path] == name_or_path}
|
114
120
|
val ? val[:value] : nil
|
data/lib/amee/version.rb
CHANGED