Class: ZerigoDNS::HostTemplate

Inherits:
Client
  • Object
show all
Includes:
Resource
Defined in:
lib/zerigodns/host_template.rb

Constant Summary

Constants inherited from Client

Client::ACTIONS, Client::ResponseError

Instance Attribute Summary

Attributes inherited from Client

#response

Instance Method Summary collapse

Methods included from Resource

included

Methods inherited from Client

connection

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.



9
10
11
# File 'lib/zerigodns/host_template.rb', line 9

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