Skip to content

Commit

Permalink
fix: add #record method to client
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Apr 2, 2021
1 parent 534c394 commit d15fd7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dennis/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'dennis/group'
require 'dennis/zone'
require 'dennis/nameserver'
require 'dennis/record'

module Dennis
class Client
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d15fd7b

Please sign in to comment.