Class: ZerigoDNS::Config
- Inherits:
-
Object
- Object
- ZerigoDNS::Config
- Defined in:
- lib/zerigodns/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ String
The Api key generated by Zerigo DNS.
-
#secure ⇒ Boolean
Whether to use HTTPS.
-
#site ⇒ Object
Returns the value of attribute site.
-
#user ⇒ String
Your e-mail address.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
-
#secure? ⇒ Boolean
true
ifhttps
is used.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 |
# File 'lib/zerigodns/config.rb', line 8 def initialize @site = 'https://ns.zerigo.com/api/1.1' end |
Instance Attribute Details
#api_key ⇒ String
The Api key generated by Zerigo DNS
5 6 7 |
# File 'lib/zerigodns/config.rb', line 5 def api_key @api_key end |
#secure ⇒ Boolean
Whether to use HTTPS
5 6 7 |
# File 'lib/zerigodns/config.rb', line 5 def secure @secure end |
#site ⇒ Object
Returns the value of attribute site.
6 7 8 |
# File 'lib/zerigodns/config.rb', line 6 def site @site end |
#user ⇒ String
Your e-mail address
5 6 7 |
# File 'lib/zerigodns/config.rb', line 5 def user @user end |
Instance Method Details
#secure? ⇒ Boolean
Returns true
if https
is used.
13 14 15 |
# File 'lib/zerigodns/config.rb', line 13 def secure? !!secure end |