Class: Proxy::Dns::Dnsmasq::Default::PTREntry

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

#fqdnObject

Returns the value of attribute fqdn.



150
151
152
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 150

def fqdn
  @fqdn
end

#ipObject

Returns the value of attribute ip.



150
151
152
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 150

def ip
  @ip
end

Instance Method Details

#to_sObject



152
153
154
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 152

def to_s
  "ptr-record=#{ip},#{fqdn}"
end