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
12
|
# File 'lib/haveapi/client/authentication/basic.rb', line 12
def password = @opts.[](:password)
|
#resource ⇒ Object
7
8
9
|
# File 'lib/haveapi/client/authentication/basic.rb', line 7
def resource
RestClient::Resource.new(@communicator.url, @opts[:user], @opts[:password])
end
|
#user ⇒ Object
11
|
# File 'lib/haveapi/client/authentication/basic.rb', line 11
def user = @opts.[](:user)
|