Sha256: fd07fcd016059ca5eaed9240fcf3a0a60f9f49d5d6ee5b44e228b2628eb032b1

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

module HaveAPI::Client::Authentication
  class Basic < Base
    register :basic

    def resource
      RestClient::Resource.new(@communicator.url, @opts[:user], @opts[:password])
    end

    def user ; @opts[:user] ; end
    def password ; @opts[:password] ; end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
haveapi-client-0.11.1 lib/haveapi/client/authentication/basic.rb
haveapi-client-0.11.0 lib/haveapi/client/authentication/basic.rb
haveapi-client-0.10.0 lib/haveapi/client/authentication/basic.rb