module Roar::Coercion
Use the :type
option to specify the conversion type. class ImmigrantSong
include Roar::JSON include Roar::Coercion property :composed_at, :type => DateTime, :default => "May 12th, 2012"
end
Public Class Methods
included(base)
click to toggle source
# File lib/roar/coercion.rb, line 14 def self.included(base) base.class_eval do include Representable::Coercion end end