Class: DataMapper::Is::Serialized::Filters::SerializeFilter
- Inherits:
-
Object
- Object
- DataMapper::Is::Serialized::Filters::SerializeFilter
- Defined in:
- lib/dm-is-serialized/is/filters.rb
Overview
superclass for all filter
Direct Known Subclasses
BooleanSerializeFilter, GeneralSerializeFilter, ModelSerializeFilter
Instance Attribute Summary collapse
-
#name ⇒ Object
record: object of model (just in serialize) name: symbol with property name.
-
#record ⇒ Object
record: object of model (just in serialize) name: symbol with property name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
record: object of model (just in serialize) name: symbol with property name
9 10 11 |
# File 'lib/dm-is-serialized/is/filters.rb', line 9 def name @name end |
#record ⇒ Object
record: object of model (just in serialize) name: symbol with property name
9 10 11 |
# File 'lib/dm-is-serialized/is/filters.rb', line 9 def record @record end |
Instance Method Details
#property ⇒ Object
10 11 12 |
# File 'lib/dm-is-serialized/is/filters.rb', line 10 def property @record.class.properties[@name] end |
#relationship(name) ⇒ Object
14 15 16 |
# File 'lib/dm-is-serialized/is/filters.rb', line 14 def relationship(name) @record.class.relationships[@name] end |