Module: Typekit::Processing::Converter
- Defined in:
- lib/typekit/processing/converter.rb,
lib/typekit/processing/converter/errors.rb,
lib/typekit/processing/converter/record.rb,
lib/typekit/processing/converter/boolean.rb,
lib/typekit/processing/converter/unknown.rb,
lib/typekit/processing/converter/datetime.rb,
lib/typekit/processing/converter/collection.rb
Defined Under Namespace
Classes: Boolean, Collection, DateTime, Errors, Record, Unknown
Constant Summary collapse
- MAPPING =
{ :record => Record, :collection => Collection, 'ok' => Boolean, 'errors' => Errors, 'published' => DateTime, nil => Errors }
Class Method Summary collapse
Class Method Details
.build(name) ⇒ Object
23 24 25 |
# File 'lib/typekit/processing/converter.rb', line 23 def self.build(name) MAPPING[Typekit::Record.identify(name) || name].new(name) end |