Class: Immoscout::Models::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/immoscout/models/base.rb

Overview

The base/abstract model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/immoscout/models/base.rb', line 9

def initialize(hash = {})
  define_singleton_method(:base) { hash }
  set_properties
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



7
8
9
# File 'lib/immoscout/models/base.rb', line 7

def base
  @base
end