dutws_foo 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/dutws_foo/web_service.rb +4 -4
- data/lib/dutws_foo/version.rb +1 -1
- metadata +1 -1
@@ -3,14 +3,14 @@ module DutwsFoo
|
|
3
3
|
class << self
|
4
4
|
def handle_request(args)
|
5
5
|
if (args['Command'] == 'data_update_notification')
|
6
|
-
|
6
|
+
begin
|
7
7
|
attrs = args['Body']["attributes"]
|
8
8
|
operation = attrs.keys.first
|
9
9
|
data = attrs[operation]#["Data"]
|
10
10
|
args['Document'].singularize.classify.constantize.send(operation.downcase.to_sym, data)
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
rescue
|
12
|
+
return {:success => false}
|
13
|
+
end
|
14
14
|
{:success => true}
|
15
15
|
end
|
16
16
|
end
|
data/lib/dutws_foo/version.rb
CHANGED