Class: Splicer::DnsMadeEasy::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, secret, options = {}) ⇒ Config

Returns a new instance of Config.



7
8
9
10
11
12
# File 'lib/splicer/dns_made_easy/config.rb', line 7

def initialize(key, secret, options = {})
  @key = key
  @secret = secret
  @api_mode = options[:api_mode] || :live
  @use_ssl = options[:use_ssl]
end

Instance Attribute Details

#api_modeObject (readonly)

Returns the value of attribute api_mode.



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

def api_mode
  @api_mode
end

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#secretObject (readonly)

Returns the value of attribute secret.



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

def secret
  @secret
end

#use_sslObject (readonly)

Returns the value of attribute use_ssl.



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

def use_ssl
  @use_ssl
end

Instance Method Details

#providerObject



14
15
16
# File 'lib/splicer/dns_made_easy/config.rb', line 14

def provider
  Provider.new(self)
end