diff --git a/lib/dennis/client.rb b/lib/dennis/client.rb index bbee706..c5da45c 100644 --- a/lib/dennis/client.rb +++ b/lib/dennis/client.rb @@ -4,6 +4,7 @@ require 'dennis/group' require 'dennis/zone' require 'dennis/nameserver' +require 'dennis/record' module Dennis class Client @@ -40,6 +41,10 @@ def zone(id, field: :id) Zone.find_by(self, field, id) end + def record(id, field: :id) + Record.find_by(self, field, id) + end + def nameservers Nameserver.all(self) end