lib/immoscout/models/base.rb in immoscout-1.3.2 vs lib/immoscout/models/base.rb in immoscout-1.4.0
- old
+ new
@@ -1,17 +1,18 @@
# frozen_string_literal: true
module Immoscout
module Models
+ # The base/abstract model.
class Base
attr_reader :base
def initialize(hash = {})
define_singleton_method(:base) { hash }
set_properties
end
- private
+ protected
def prepared_hash
base
.deep_stringify_keys
.deep_transform_keys(&:underscore)