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