Module: Representable::Binding::Factories
- Included in:
- Representable::Binding
- Defined in:
- lib/representable/binding.rb
Instance Method Summary collapse
- #deserializer ⇒ Object
- #deserializer_class ⇒ Object
- #populator ⇒ Object
- #populator_class ⇒ Object
- #serializer ⇒ Object
- #serializer_class ⇒ Object
Instance Method Details
#deserializer ⇒ Object
193 194 195 |
# File 'lib/representable/binding.rb', line 193 def deserializer @deserializer ||= deserializer_class.new(self) end |
#deserializer_class ⇒ Object
189 190 191 |
# File 'lib/representable/binding.rb', line 189 def deserializer_class Deserializer end |
#populator ⇒ Object
181 182 183 |
# File 'lib/representable/binding.rb', line 181 def populator @populator ||= populator_class.new(self) end |
#populator_class ⇒ Object
185 186 187 |
# File 'lib/representable/binding.rb', line 185 def populator_class Populator end |
#serializer ⇒ Object
177 178 179 |
# File 'lib/representable/binding.rb', line 177 def serializer @serializer ||= serializer_class.new(self) end |
#serializer_class ⇒ Object
173 174 175 |
# File 'lib/representable/binding.rb', line 173 def serializer_class Serializer end |