Class: Splicer::DnsMadeEasy::Config
- Inherits:
-
Object
- Object
- Splicer::DnsMadeEasy::Config
- Defined in:
- lib/splicer/dns_made_easy/config.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(key, secret) ⇒ Config
constructor
A new instance of Config.
- #provider ⇒ Object
Constructor Details
#initialize(key, secret) ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/splicer/dns_made_easy/config.rb', line 7 def initialize(key, secret) @key = key @secret = secret end |
Instance Attribute Details
#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 |
Instance Method Details
#client ⇒ Object
16 17 18 |
# File 'lib/splicer/dns_made_easy/config.rb', line 16 def client Client.new(key, secret) end |
#provider ⇒ Object
12 13 14 |
# File 'lib/splicer/dns_made_easy/config.rb', line 12 def provider Provider.new(self) end |