lib/mergent/object.rb in mergent-0.1.1 vs lib/mergent/object.rb in mergent-0.1.2
- old
+ new
@@ -1,5 +1,11 @@
# frozen_string_literal: true
module Mergent
- class Object < OpenStruct; end # rubocop:disable Style/OpenStructUse
+ class Object
+ attr_reader :_data
+
+ def initialize(data = {})
+ @_data = data.transform_keys(&:to_sym)
+ end
+ end
end