module Ant::Client::Format
Public Class Methods
build(config)
click to toggle source
# File lib/ant/client/format/format.rb, line 8 def build(config) @formats ||= default_formats @formats[config[:format]].new end
default_formats()
click to toggle source
# File lib/ant/client/format/format.rb, line 13 def default_formats { json: JSONFormat, url_encoded: URLEncodedFormat } end