Class: HaveAPI::Client::Authentication::Basic
- Inherits:
-
Base
- Object
- Base
- HaveAPI::Client::Authentication::Basic
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
Instance Method Details
#password ⇒ Object
17
|
# File 'lib/haveapi/client/authentication/basic.rb', line 17
def password = @opts.[](:password)
|
#resource ⇒ Object
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
|
#user ⇒ Object
16
|
# File 'lib/haveapi/client/authentication/basic.rb', line 16
def user = @opts.[](:user)
|