Class: Designate::Template

Inherits:
Client
  • Object
show all
Defined in:
lib/designate/template.rb

Constant Summary

Constants inherited from Client

Client::API_VERSION, Client::DOMAIN

Instance Method Summary collapse

Methods inherited from Client

#create_zone, #find_or_create_zone, #find_template_by_id, #find_zone_by_domain, #find_zone_by_id, #templates, #zerigo_config, #zones

Constructor Details

#initialize(data) ⇒ Template

Returns a new instance of Template.



4
5
6
7
8
9
10
11
# File 'lib/designate/template.rb', line 4

def initialize(data)
  data.each do |key, value|
    instance_variable_set("@#{key}", value)
    Template.instance_eval do
      attr_reader key.to_sym
    end
  end
end