class Nuncium::Responses::DataBox
Constants
- REMOVED_KEYS
Public Class Methods
new(response)
click to toggle source
# File lib/nuncium/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