Class: PassiveCIRCL::API
- Inherits:
-
Object
- Object
- PassiveCIRCL::API
- Defined in:
- lib/passive_circl/api.rb
Instance Attribute Summary collapse
-
#dns ⇒ Object
readonly
Returns the value of attribute dns.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
Instance Method Summary collapse
-
#initialize(username: ENV["CIRCL_PASSIVE_USERNAME"], password: ENV["CIRCL_PASSIVE_PASSWORD"]) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(username: ENV["CIRCL_PASSIVE_USERNAME"], password: ENV["CIRCL_PASSIVE_PASSWORD"]) ⇒ API
Returns a new instance of API.
8 9 10 11 |
# File 'lib/passive_circl/api.rb', line 8 def initialize(username: ENV["CIRCL_PASSIVE_USERNAME"], password: ENV["CIRCL_PASSIVE_PASSWORD"]) @dns = Clients::DNS.new(username: username, password: password) @ssl = Clients::SSL.new(username: username, password: password) end |
Instance Attribute Details
#dns ⇒ Object (readonly)
Returns the value of attribute dns.
5 6 7 |
# File 'lib/passive_circl/api.rb', line 5 def dns @dns end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
6 7 8 |
# File 'lib/passive_circl/api.rb', line 6 def ssl @ssl end |