Class: Freenom::DNSRecordsFetcher
- Defined in:
- lib/freenom/dns/explorers/dns_records_fetcher.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
Instance Method Summary collapse
-
#initialize(domain:) ⇒ DNSRecordsFetcher
constructor
A new instance of DNSRecordsFetcher.
- #run ⇒ Object
Methods included from ExtendedCapybaraDSL
Methods included from Expecting
Constructor Details
#initialize(domain:) ⇒ DNSRecordsFetcher
Returns a new instance of DNSRecordsFetcher.
10 11 12 |
# File 'lib/freenom/dns/explorers/dns_records_fetcher.rb', line 10 def initialize(domain:) @domain = domain end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
8 9 10 |
# File 'lib/freenom/dns/explorers/dns_records_fetcher.rb', line 8 def domain @domain end |
Instance Method Details
#run ⇒ Object
14 15 16 17 |
# File 'lib/freenom/dns/explorers/dns_records_fetcher.rb', line 14 def run Freenom::DNSRecordsVisitor.new(domain: @domain).run fetch_records end |