Class: Proxy::Dns::Dnsmasq::Default::CNAMEEntry
- Inherits:
-
Object
- Object
- Proxy::Dns::Dnsmasq::Default::CNAMEEntry
- Defined in:
- lib/smart_proxy_dns_dnsmasq/backend/default.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#target ⇒ Object
Returns the value of attribute target.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
142 143 144 |
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 142 def name @name end |
#target ⇒ Object
Returns the value of attribute target.
142 143 144 |
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 142 def target @target end |
#ttl ⇒ Object
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_s ⇒ Object
144 145 146 |
# File 'lib/smart_proxy_dns_dnsmasq/backend/default.rb', line 144 def to_s "cname=#{name},#{target}#{ttl && ',' + ttl}" end |