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



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

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

#resourceObject



7
8
9
10
11
12
13
14
# File 'lib/haveapi/client/authentication/basic.rb', line 7

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

#userObject



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

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