Class: RubyIsds::Responses::Body
- Inherits:
-
Object
- Object
- RubyIsds::Responses::Body
- Defined in:
- lib/ruby_isds/responses/body.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize(response) ⇒ Body
Returns a new instance of Body.
4 5 6 7 8 9 |
# File 'lib/ruby_isds/responses/body.rb', line 4 def initialize(response) (response.keys - self.class::REMOVED_KEYS).each do |key| self.class.send(:attr_accessor, key.to_sym) instance_variable_set("@#{key}", parsed_value(response[key])) end end |