Class: ZerigoDNS::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/zerigodns/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyString

The Api key generated by Zerigo DNS

Returns:

  • (String)

    the current value of api_key



5
6
7
# File 'lib/zerigodns/config.rb', line 5

def api_key
  @api_key
end

#secureBoolean

Whether to use HTTPS

Returns:

  • (Boolean)

    the current value of secure



5
6
7
# File 'lib/zerigodns/config.rb', line 5

def secure
  @secure
end

#siteObject

Returns the value of attribute site.



6
7
8
# File 'lib/zerigodns/config.rb', line 6

def site
  @site
end

#userString

Your e-mail address

Returns:

  • (String)

    the current value of user



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.

Returns:

  • (Boolean)

    true if https is used



13
14
15
# File 'lib/zerigodns/config.rb', line 13

def secure?
  !!secure
end