Sha256: 534b1c529869a7f083692e95e48294bfc58155255e44df763271914fdbde0c79

Contents?: true

Size: 775 Bytes

Versions: 7

Compression:

Stored size: 775 Bytes

Contents

# LeadTune API Ruby Gem
#
# http://github.com/leadtune/leadtune-ruby
# Eric Wollesen (mailto:devs@leadtune.com)
# Copyright 2010 LeadTune LLC

dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

# For details about the LeadTune API, see: http://leadtune.com/api

module Leadtune #:nodoc:all
end

# Raised when non-2XX responses are received.
class Leadtune::LeadtuneError < RuntimeError 

  # HTTP status code
  attr_reader :code

  # Any body text included with the response
  attr_reader :message 

  def initialize(code, message)
    @code, @message = code, message
  end

  def to_s #:nodoc:
    "#{@code} #{message}"
  end
end 


require "leadtune/util"
require "leadtune/prospect"
require "leadtune/rest"
require "leadtune/appraisals"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
leadtune-0.0.9 lib/leadtune.rb
leadtune-0.0.8 lib/leadtune.rb
leadtune-0.0.7 lib/leadtune.rb
leadtune-0.0.6 lib/leadtune.rb
leadtune-0.0.5 lib/leadtune.rb
leadtune-0.0.4 lib/leadtune.rb
leadtune-0.0.3 lib/leadtune.rb