Class: RubyIsds::Responses::DataBox
- Defined in:
- lib/ruby_isds/responses/data_box.rb
Constant Summary collapse
- REMOVED_KEYS =
%w[xmlns:p xmlns:xsi dbStatus].freeze
Instance Method Summary collapse
-
#initialize(response) ⇒ DataBox
constructor
A new instance of DataBox.
Constructor Details
#initialize(response) ⇒ DataBox
Returns a new instance of DataBox.
6 7 8 9 10 11 |
# File 'lib/ruby_isds/responses/data_box.rb', line 6 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 |