Class: HaveAPI::Client::Authentication::Basic

Inherits:
Base
  • Object
show all
Defined in:
lib/haveapi/client/authentication/basic.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, register, #request_headers, #request_payload, #request_query_params, #save, #setup

Constructor Details

This class inherits a constructor from HaveAPI::Client::Authentication::Base

Instance Method Details

#passwordObject



12
# File 'lib/haveapi/client/authentication/basic.rb', line 12

def password = @opts.[](:password)

#resourceObject



7
8
9
# File 'lib/haveapi/client/authentication/basic.rb', line 7

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

#userObject



11
# File 'lib/haveapi/client/authentication/basic.rb', line 11

def user = @opts.[](:user)