Sha256: 861678f9ba0a6b709c7b81432b972e6b0b43ab50f3844da2cfa965a7b716eafb

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'json'
require 'mocha/setup'
require 'public_suffix'
require 'rest_client'

require 'demandbase/error'
require 'demandbase/record'

module Demandbase
   class << self

    # Look up a Demandbase record for a given domain name.
    #
    # Returns a Demandbase::Record if the record is found; nil otherwise.
    #
    # Raises a Demandbase::RTIDNotSetError if a RTID key is not set.
    # Raises a Demandbase::ParseError if the domain doesn't look legit.
    # Raises a Demandbase::ServerError if the Demandbase server is unresponsive.
    #
    def lookup(domain)
      Demandbase::Record.new(domain)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
demandbase-0.1.2 lib/demandbase.rb