Class: Authenticator::Client::Base
- Inherits:
-
JsonClient::Base
- Object
- JsonClient::Base
- Authenticator::Client::Base
- Defined in:
- lib/authenticator/client/base.rb
Instance Method Summary collapse
- #authenticate(account) ⇒ Object
-
#initialize(config, account) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config, account) ⇒ Base
14 15 16 17 18 19 |
# File 'lib/authenticator/client/base.rb', line 14 def initialize(config, account) super( JsonClient::Pather.new(config[:host], 'api/v1', 'accounts'), config ) end |
Instance Method Details
#authenticate(account) ⇒ Object
21 22 23 |
# File 'lib/authenticator/client/base.rb', line 21 def authenticate(account) request_authentication(account) end |