Class: Freenom::DNSRecordsFetcher

Inherits:
Explorer
  • Object
show all
Defined in:
lib/freenom/dns/explorers/dns_records_fetcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ExtendedCapybaraDSL

#text?

Methods included from Expecting

#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

#domainObject

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

#runObject



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