Class: CZDS::ZoneFile
- Inherits:
-
Object
- Object
- CZDS::ZoneFile
- Extended by:
- Forwardable
- Defined in:
- lib/czds/zone_file.rb,
lib/czds/zone_file/status.rb
Constant Summary collapse
- Status =
Data.define(:file_name, :length, :updated_at) do def updated_at.gsub(':', '-') end def to_h { file_name:, length:, updated_at:, timestamp:, } end end
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#tld ⇒ Object
readonly
Returns the value of attribute tld.
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize(tld = "com") ⇒ ZoneFile
constructor
A new instance of ZoneFile.
- #status ⇒ Object
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
10 11 12 |
# File 'lib/czds/zone_file.rb', line 10 def client @client end |
#tld ⇒ Object (readonly)
Returns the value of attribute tld.
10 11 12 |
# File 'lib/czds/zone_file.rb', line 10 def tld @tld end |
Instance Method Details
#download ⇒ Object
19 20 21 |
# File 'lib/czds/zone_file.rb', line 19 def download client.download_zone_file(tld) end |
#status ⇒ Object
23 24 25 |
# File 'lib/czds/zone_file.rb', line 23 def status @status ||= client.zone_file_status(tld) end |