Class: Proxy::Dns::Dnsmasq::Default::CNAMEEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dns_dnsmasq/backend/default.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



142
143
144
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 142

def name
  @name
end

#targetObject

Returns the value of attribute target.



142
143
144
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 142

def target
  @target
end

#ttlObject

Returns the value of attribute ttl.



142
143
144
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 142

def ttl
  @ttl
end

Instance Method Details

#to_sObject



144
145
146
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 144

def to_s
  "cname=#{name},#{target}#{ttl && ',' + ttl}"
end