Class: JSONAPI::Formatter
- Inherits:
-
Object
- Object
- JSONAPI::Formatter
show all
- Defined in:
- lib/jsonapi/formatter.rb
Class Method Summary
collapse
Class Method Details
4
5
6
|
# File 'lib/jsonapi/formatter.rb', line 4
def format(arg)
arg.to_s
end
|
20
21
22
|
# File 'lib/jsonapi/formatter.rb', line 20
def formatter_for(format)
"#{format.to_s.camelize}Formatter".safe_constantize
end
|
.uncached ⇒ Object
16
17
18
|
# File 'lib/jsonapi/formatter.rb', line 16
def uncached
return self
end
|
8
9
10
|
# File 'lib/jsonapi/formatter.rb', line 8
def unformat(arg)
arg
end
|