Class: ApipieBindings::AbstractCredentials
- Inherits:
-
Object
- Object
- ApipieBindings::AbstractCredentials
- Defined in:
- lib/apipie_bindings/credentials.rb
Overview
AbstractCredentials class can hold your logic to get users credentials. It defines interface that can be used by ApipieBindings when the credentials are needed to create connection
Instance Method Summary collapse
-
#clear ⇒ Object
Clear credentials storage.
-
#empty? ⇒ Boolean
Check that credentials storage is empty.
-
#to_params ⇒ Hash
Convert credentials to hash usable for merging to RestClient configuration.
Instance Method Details
#clear ⇒ Object
Clear credentials storage
19 20 |
# File 'lib/apipie_bindings/credentials.rb', line 19 def clear end |
#empty? ⇒ Boolean
Check that credentials storage is empty
15 16 |
# File 'lib/apipie_bindings/credentials.rb', line 15 def empty? end |
#to_params ⇒ Hash
Convert credentials to hash usable for merging to RestClient configuration
10 11 12 |
# File 'lib/apipie_bindings/credentials.rb', line 10 def to_params {} end |