Class: Proxy::Dns::Dnsmasq::Default::AddressEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAddressEntry

Returns a new instance of AddressEntry.



132
133
134
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 132

def initialize
  @fqdn = []
end

Instance Attribute Details

#fqdnObject

Returns the value of attribute fqdn.



131
132
133
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 131

def fqdn
  @fqdn
end

#ipObject

Returns the value of attribute ip.



131
132
133
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 131

def ip
  @ip
end

Instance Method Details

#to_sObject



136
137
138
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 136

def to_s
  "address=/#{fqdn.join '/'}/#{ip}"
end