Class: Splicer::DnsMadeEasy::Config
- Inherits:
-
Object
- Object
- Splicer::DnsMadeEasy::Config
- Defined in:
- lib/splicer/dns_made_easy/config.rb
Instance Attribute Summary collapse
-
#api_mode ⇒ Object
readonly
Returns the value of attribute api_mode.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#use_ssl ⇒ Object
readonly
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize(key, secret, options = {}) ⇒ Config
constructor
A new instance of Config.
- #provider ⇒ Object
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, = {}) @key = key @secret = secret @api_mode = [:api_mode] || :live @use_ssl = [:use_ssl] end |
Instance Attribute Details
#api_mode ⇒ Object (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 |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/splicer/dns_made_easy/config.rb', line 5 def key @key end |
#secret ⇒ Object (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_ssl ⇒ Object (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 |