method
new
new(name, serializable, raw_value=nil)
public
Hide source
# File activemodel/lib/active_model/serializers/xml.rb, line 18 def initialize(name, serializable, raw_value=nil) @name, @serializable = name, serializable raw_value = raw_value.in_time_zone if raw_value.respond_to?(:in_time_zone) @value = raw_value || @serializable.send(name) @type = compute_type end