Sha256: 918fa6e042c343f46a693ad405b4aa29cffcc6e05177c65a875bdbf65d1d3a7a

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

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

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

module Mousetrap
  autoload(:Resource, 'mousetrap/resource')
  autoload(:Customer, 'mousetrap/customer')
  
  class << self
    attr_accessor :product_code
    
    def authenticate(user, password)
      Resource.basic_auth user, password
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hashrocket-mousetrap-0.1.1 lib/mousetrap.rb