Sha256: d7e402aecd1ec022ac7e50e306fd649a53e3f8a02cccc6a0007ee695e5ae0570

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

module Nuncium
  module Responses
    class DataBox < Body
      REMOVED_KEYS = %w[xmlns:p xmlns:xsi dbStatus].freeze

      def initialize(response)
        (response.keys - REMOVED_KEYS).each do |key|
          self.class.send(:attr_accessor, key.to_sym)
          instance_variable_set("@#{key}", response[key])
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/responses/data_box.rb