Floppy-amee 0.4.18 → 0.4.19
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/data_item.rb +4 -0
- data/lib/amee/version.rb +1 -1
- metadata +1 -1
data/lib/amee/data_item.rb
CHANGED
@@ -109,6 +109,10 @@ module AMEE
|
|
109
109
|
raise AMEE::BadData.new("Couldn't update DataItem. Check that your information is correct.")
|
110
110
|
end
|
111
111
|
|
112
|
+
def value(name_or_path_or_uid)
|
113
|
+
val = values.find{ |x| x[:name] == name_or_path_or_uid || x[:path] == name_or_path_or_uid || x[:uid] == name_or_path_or_uid}
|
114
|
+
val ? val[:value] : nil
|
115
|
+
end
|
112
116
|
|
113
117
|
end
|
114
118
|
end
|
data/lib/amee/version.rb
CHANGED