Class: DataMapper::Is::Serialized::Filters::SerializeFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-is-serialized/is/filters.rb

Overview

superclass for all filter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

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

#recordObject

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

#propertyObject



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