Class: PasswordBreachAlert::Api::Breach
- Defined in:
- lib/password_breach_alert/api/breach.rb
Constant Summary collapse
- API_URL =
'https://haveibeenpwned.com/api/v2/breaches'.freeze
Constants inherited from Base
PasswordBreachAlert::Api::Base::DEFAULT_REQUEST_OPTIONS
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PasswordBreachAlert::Api::Base
Instance Method Details
#call ⇒ Object
8 9 10 11 12 |
# File 'lib/password_breach_alert/api/breach.rb', line 8 def call with_wait do JSON.parse(URI.parse(API_URL).open(@request_options).read) end end |