Module: Metro::PropertyOwner
- Included in:
- Model
- Defined in:
- lib/metro/models/properties/property_owner.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#properties ⇒ Hash
The raw properties of the model.
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/metro/models/properties/property_owner.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#properties ⇒ Hash
The raw properties of the model. Most properties defined through the ‘property` class method will have getters/setters that will do the appropriate translation so this should in cases when you need access to the raw properties or there is not a property accessors defined.
17 18 19 |
# File 'lib/metro/models/properties/property_owner.rb', line 17 def properties @properties ||= {} end |