Class: Proxy::Dns::Dnsmasq::Default::AddressEntry
- Inherits:
-
Object
- Object
- Proxy::Dns::Dnsmasq::Default::AddressEntry
- Defined in:
- lib/smart_proxy_dns_dnsmasq/backend/default.rb
Instance Attribute Summary collapse
-
#fqdn ⇒ Object
Returns the value of attribute fqdn.
-
#ip ⇒ Object
Returns the value of attribute ip.
Instance Method Summary collapse
-
#initialize ⇒ AddressEntry
constructor
A new instance of AddressEntry.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ AddressEntry
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
#fqdn ⇒ Object
Returns the value of attribute fqdn.
131 132 133 |
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 131 def fqdn @fqdn end |
#ip ⇒ Object
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_s ⇒ Object
136 137 138 |
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 136 def to_s "address=/#{fqdn.join '/'}/#{ip}" end |