Sha256: 122ba45b1d39229f21e5940a2106818020570f0752ae06bd7e14698f495efd84

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

module API
  module Base
    
    class AccessCredentials; end
  
    class BasicAccessCredentials < AccessCredentials
      attr_accessor :username, :password
      
      def initialize(credentials)
        self.username = credentials[:username]
        self.password = credentials[:password]
      end
    end
  
    class Error < RuntimeError; end
    
    class ServiceError < Error; end
    
    class Request
      attr_accessor :url, :credentials      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pdsphil-ruby-whatcounts-0.1.0 lib/whatcounts/api.rb