Class: VIISP::Auth::Client
- Inherits:
-
Object
- Object
- VIISP::Auth::Client
- Defined in:
- lib/viisp/auth/client.rb
Instance Method Summary collapse
Instance Method Details
#post(document) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/viisp/auth/client.rb', line 8 def post(document) with_error_handling do request = Signing.sign(document) response = connection.post('', request) xml = Nokogiri::XML(response.body) Signing.validate!(xml) xml end end |