Floppy-amee 0.4.15 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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