Class: Api::Authentication
Constant Summary
Constants inherited from Billing
Billing::API_HOST, Billing::KEY_PATH
Instance Method Summary collapse
-
#initialize(login, password) ⇒ Authentication
constructor
A new instance of Authentication.
- #valid_credentials? ⇒ Boolean
Methods inherited from Billing
#api_call_result, #auth_key, #host_with_port, #hostname, #response, #signed_data, #success_api_call?, #uri
Constructor Details
#initialize(login, password) ⇒ Authentication
Returns a new instance of Authentication.
5 6 7 |
# File 'lib/api/authentication.rb', line 5 def initialize(login, password) @login, @password = login, password end |
Instance Method Details
#valid_credentials? ⇒ Boolean
9 10 11 |
# File 'lib/api/authentication.rb', line 9 def valid_credentials? success_api_call? end |