Sha256: 645b42aeda86c3998aba668b94cc35951c6206a03036c018de7fbfdbc293588c

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

require 'json'
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.3 lib/demandbase.rb