Sha256: 2410692af2bfae239707e6d448099a0b773007d37a7a447728ae71fcbbbd0788

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

require 'moo_moo/exceptions'
require 'faraday'

module MooMoo
  autoload :Version,           'moo_moo/version'
  autoload :Config,            'moo_moo/config'
  autoload :Command,           'moo_moo/command'
  autoload :Response,          'moo_moo/response'
  autoload :Base,              'moo_moo/base'
  autoload :Lookup,            'moo_moo/lookup'
  autoload :Nameserver,        'moo_moo/nameserver'
  autoload :Provisioning,      'moo_moo/provisioning'
  autoload :Transfer,          'moo_moo/transfer'
  autoload :DnsZone,           'moo_moo/dns_zone'
  autoload :Cookie,            'moo_moo/cookie'
  autoload :OpenSRSErrors,     'moo_moo/middleware/open_srs_errors'
  autoload :ParseOpenSRS,      'moo_moo/middleware/parse_open_srs'
  autoload :OpenSRSXMLBuilder, 'moo_moo/middleware/open_srs_xml_builder'

  class << self
    attr_accessor :config
  end

  def self.configure
    yield config if block_given?
    config
  end

  self.config = Config.new
end

Faraday.register_middleware :request, :open_srs_xml_builder => MooMoo::OpenSRSXMLBuilder
Faraday.register_middleware :response, :open_srs_errors => MooMoo::OpenSRSErrors, :parse_open_srs => MooMoo::ParseOpenSRS

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moo_moo-0.2.0 lib/moo_moo.rb