Class: DutwsFoo::WebService
- Inherits:
-
Object
- Object
- DutwsFoo::WebService
- Defined in:
- app/models/dutws_foo/web_service.rb
Class Method Summary collapse
Class Method Details
.handle_request(args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/models/dutws_foo/web_service.rb', line 4 def handle_request(args) if (args['Command'] == 'data_update_notification') begin attrs = args['Body']["attributes"] operation = attrs.keys.first data = attrs[operation]#["Data"] args['Document'].singularize.classify.constantize.send(operation.downcase.to_sym, data) rescue return {:success => false} end {:success => true} end end |