class JSONAPI::Formatter
Public Class Methods
cached()
click to toggle source
# File lib/jsonapi/formatter.rb, line 12 def cached return FormatterWrapperCache.new(self) end
format(arg)
click to toggle source
# File lib/jsonapi/formatter.rb, line 4 def format(arg) arg.to_s end
formatter_for(format)
click to toggle source
# File lib/jsonapi/formatter.rb, line 20 def formatter_for(format) "#{format.to_s.camelize}Formatter".safe_constantize end
uncached()
click to toggle source
# File lib/jsonapi/formatter.rb, line 16 def uncached return self end
unformat(arg)
click to toggle source
# File lib/jsonapi/formatter.rb, line 8 def unformat(arg) arg end