Module: LucidHttp::Formatter
- Defined in:
- lib/lucid_http/formatters.rb
Defined Under Namespace
Classes: JsonFormatter, PlainFormatter
Class Method Summary collapse
Class Method Details
.for(keyword) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/lucid_http/formatters.rb', line 6 def self.for(keyword) { plain: PlainFormatter.new, json: JsonFormatter.new, }.fetch(keyword) end |