Class: Epics::VMK

Inherits:
GenericRequest show all
Defined in:
lib/epics/vmk.rb

Instance Attribute Summary

Attributes inherited from GenericRequest

#client, #options, #transaction_id

Instance Method Summary collapse

Methods inherited from GenericRequest

#auth_signature, #body, #initialize, #nonce, #root, #timestamp, #to_receipt_xml, #to_transfer_xml, #to_xml

Constructor Details

This class inherits a constructor from Epics::GenericRequest

Instance Method Details

#headerObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/epics/vmk.rb', line 2

def header
  client.header_request.build(
    nonce: nonce,
    timestamp: timestamp,
    order_type: 'VMK',
    order_attribute: 'DZHNN',
    order_params: !!options[:from] && !!options[:to] ? {
      DateRange: {
        Start: options[:from],
        End: options[:to]
      }
    } : {},
    mutable: { TransactionPhase: 'Initialisation' }
  )
end