Sha256: 427a17bedbac277db37c61c4846121e15b9dbc8a18a94d50167c5427b5c9fc4b

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

module RubyIsds
  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

11 entries across 11 versions & 1 rubygems

Version Path
ruby_isds-0.13.0 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.12.0 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.11.1 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.11.0 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.10.5 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.10.4 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.10.3 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.10.2 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.10.1 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.9.1 lib/ruby_isds/responses/data_box.rb
ruby_isds-0.9.0 lib/ruby_isds/responses/data_box.rb