Class: Zone

Inherits:
Resource
  • Object
show all
Defined in:
lib/slicehost-tools/resources/dns.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.find_by_origin(origin) ⇒ Object



9
10
11
# File 'lib/slicehost-tools/resources/dns.rb', line 9

def find_by_origin(origin)
  find(:first, :params => { :origin => "#{origin}." })
end

Instance Method Details

#records(reload = false) ⇒ Object



3
4
5
6
# File 'lib/slicehost-tools/resources/dns.rb', line 3

def records(reload = false)
  @records = nil if reload
  @records ||= Record.find(:all, :params => { :zone_id => self.id })
end