Sha256: b56e96bff6e581267a167be040cac0f9ee7b097b0cb662cd7a61833c80eaaa5e

Contents?: true

Size: 527 Bytes

Versions: 16

Compression:

Stored size: 527 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'

  class << self
    attr_accessor :product_code

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

Version data entries

16 entries across 16 versions & 5 rubygems

Version Path
oel-brenner-mousetrap-0.5.2 lib/mousetrap.rb
ambethia-mousetrap-0.5.1 lib/mousetrap.rb
madebyrocket-mousetrap-0.5.3.8 lib/mousetrap.rb
madebyrocket-mousetrap-0.5.3.7 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.3 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.2 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3.1 lib/mousetrap.rb
cameroncox-mousetrap-0.5.3 lib/mousetrap.rb
cameroncox-mousetrap-0.5.2 lib/mousetrap.rb
cameroncox-mousetrap-0.5.1 lib/mousetrap.rb
mousetrap-0.5.0 lib/mousetrap.rb
mousetrap-0.4.4 lib/mousetrap.rb
mousetrap-0.4.3 lib/mousetrap.rb
mousetrap-0.4.2 lib/mousetrap.rb
mousetrap-0.4.1 lib/mousetrap.rb
mousetrap-0.4.0 lib/mousetrap.rb