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) ⇒ 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

#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

Instance Method Details

#clientObject



16
17
18
# File 'lib/splicer/dns_made_easy/config.rb', line 16

def client
  Client.new(key, secret)
end

#providerObject



12
13
14
# File 'lib/splicer/dns_made_easy/config.rb', line 12

def provider
  Provider.new(self)
end