Class: MtaSts::Resolver
- Inherits:
-
Object
- Object
- MtaSts::Resolver
- Defined in:
- lib/mta_sts/resolver.rb
Defined Under Namespace
Classes: Error, NotFound, ServerFailure, Timeout
Constant Summary collapse
- QUERY_TIMEOUT =
5
Instance Method Summary collapse
-
#initialize(timeout: QUERY_TIMEOUT) ⇒ Resolver
constructor
A new instance of Resolver.
- #txt(name) ⇒ Object
Constructor Details
#initialize(timeout: QUERY_TIMEOUT) ⇒ Resolver
Returns a new instance of Resolver.
12 13 14 |
# File 'lib/mta_sts/resolver.rb', line 12 def initialize(timeout: QUERY_TIMEOUT) @timeout = timeout end |
Instance Method Details
#txt(name) ⇒ Object
16 17 18 |
# File 'lib/mta_sts/resolver.rb', line 16 def txt(name) records(name).map { |record| record.strings.join } end |