Sha256: e8d3757557b62bf6fb1aca1106510ea454cfba2619073b0ec2da438a166befe2

Contents?: true

Size: 573 Bytes

Versions: 7

Compression:

Stored size: 573 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))

begin; require 'rubygems'; rescue LoadError; end
require 'httparty'

module Mousetrap
  API_UNSUPPORTED = "CheddarGetter API doesn't support this."

  autoload :Customer,     'mousetrap/customer'
  autoload :Plan,         'mousetrap/plan'
  autoload :Resource,     'mousetrap/resource'
  autoload :Subscription, 'mousetrap/subscription'
  autoload :Invoice,      'mousetrap/invoice'

  class << self
    attr_accessor :product_code

    def authenticate(user, password)
      Resource.basic_auth user, password
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cameroncox-mousetrap-0.5.3.10 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.9 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.8 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.7 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.6 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.5 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.4 lib/mousetrap.rb