Sha256: 50e655b9e564c13d3d4a8842c08afc49dccc3a489642bc262a4b0f90c18ec9a7
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
# frozen_string_literal: true module CzechPostB2bClient module ResponseParsers class GetStatsParser < BaseParser def build_result super @result[:imports] = imports end def imports imports_hash = response_root_node { requested: imports_hash['importAll'].to_i, with_errors: imports_hash['importErr'].to_i, successful: imports_hash['importOk'].to_i, imported_parcels: imports_hash['parcels'].to_i } end def response_root_node_name 'getStatsResponse' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems