Class: ApipieBindings::AbstractCredentials

Inherits:
Object
  • Object
show all
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

Instance Method Details

#clearObject

Clear credentials storage


19
20
# File 'lib/apipie_bindings/credentials.rb', line 19

def clear
end

#empty?Boolean

Check that credentials storage is empty

Returns:

  • (Boolean)

15
16
# File 'lib/apipie_bindings/credentials.rb', line 15

def empty?
end

#to_paramsHash

Convert credentials to hash usable for merging to RestClient configuration

Returns:

  • (Hash)

10
11
12
# File 'lib/apipie_bindings/credentials.rb', line 10

def to_params
  {}
end