Class: ZerigoDNS::HostTemplate

Inherits:
Base
  • Object
show all
Defined in:
lib/zerigodns/host_template.rb

Instance Method Summary collapse

Methods inherited from Base

#load

Instance Method Details

#zone_templateZoneTemplate

Fetches the zone template to which the host template belongs.

Returns:

  • (ZoneTemplate)

    The zone template to which the host template belongs.

Raises:

  • (ActiveResource::ResourceNotFound)

    if the zone template does not exist.



6
7
8
# File 'lib/zerigodns/host_template.rb', line 6

def zone_template
  @zone_template ||= ZerigoDNS::ZoneTemplate.find(zone_template_id)
end