Method: Wework::Cipher#generate_xml
- Defined in:
- lib/wework/cipher.rb
#generate_xml(msg, timestamp, nonce) ⇒ Object
71 72 73 74 75 76 77 78 79 |
# File 'lib/wework/cipher.rb', line 71 def generate_xml(msg, , nonce) encrypt = msg_encrypt(msg) { Encrypt: encrypt, MsgSignature: signature(, nonce, encrypt), TimeStamp: , Nonce: nonce }.to_xml(root: 'xml', children: 'item', skip_instruct: true, skip_types: true) end |