module Representable::Binding::Collection
generics for collection bindings.
Private Instance Methods
deserializer_class()
click to toggle source
# File lib/representable/binding.rb, line 227 def deserializer_class Deserializer::Collection end
populator_class()
click to toggle source
# File lib/representable/binding.rb, line 219 def populator_class Populator::Collection end
serializer_class()
click to toggle source
# File lib/representable/binding.rb, line 223 def serializer_class Serializer::Collection end
skipable_empty_value?(value)
click to toggle source
# File lib/representable/binding.rb, line 231 def skipable_empty_value?(value) # TODO: this can be optimized, again. return true if value.nil? and not self[:render_nil] # FIXME: test this without the "and" return true if self[:render_empty] == false and value and value.size == 0 # TODO: change in 2.0, don't render emtpy. end