Method: Atol::Transaction::PostDocument#initialize
- Defined in:
- lib/atol/transaction/post_document.rb
#initialize(operation:, token:, body:, config: nil, req_logger: nil, res_logger: nil) ⇒ PostDocument
Returns a new instance of PostDocument.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/atol/transaction/post_document.rb', line 9 def initialize(operation:, token:, body:, config: nil, req_logger: nil, res_logger: nil) @config = config || Atol.config raise(Atol::ConfigExpectedError) unless @config.is_a?(Atol::Config) @params = { operation: operation, token: token, body: body, config: config, req_logger: req_logger, res_logger: res_logger } end |