Class: Immoscout::Models::Base
- Inherits:
-
Object
- Object
- Immoscout::Models::Base
- Defined in:
- lib/immoscout/models/base.rb
Overview
The base/abstract model.
Direct Known Subclasses
ApartmentBuy, Contact, Document, HouseBuy, Parts::Address, Parts::ApiSearchData, Parts::Contact, Parts::Coordinate, Parts::Courtage, Parts::EnergyCertificate, Parts::EnergySource, Parts::FiringType, Parts::GeoCode, Parts::GeoHierarchy, Parts::InternationalCountryRegion, Parts::Price, Parts::PublishChannel, Parts::RealEstate, Parts::Url, Parts::Urls, Picture, Publish
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Base
constructor
A new instance of Base.
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
#base ⇒ Object (readonly)
Returns the value of attribute base.
7 8 9 |
# File 'lib/immoscout/models/base.rb', line 7 def base @base end |