module Ant::Client::Format

Singleton storing all the formats implemented for http clients.

Public Class Methods

build(config) click to toggle source
# File lib/ant/client/format/format.rb, line 12
def build(config)
  resource(:formats, config[:format] || 'json').new
end
register_format(name, klass) click to toggle source
# File lib/ant/client/format/format.rb, line 16
def register_format(name, klass)
  register(:formats, name, klass)
end