Class: DNSApp::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsapp/credentials.rb

Class Method Summary collapse

Class Method Details

.passwordObject

:nodoc:



30
31
32
# File 'lib/dnsapp/credentials.rb', line 30

def password #:nodoc:
  @password
end

.password=(password) ⇒ Object

Set DNSApp password. This must be done before connecting.

Example

DNSApp::Credentials.username = '[email protected]'
DNSApp::Credentials.password = 'p@ssw0rd'
DNSApp::Domain.all


26
27
28
# File 'lib/dnsapp/credentials.rb', line 26

def password=(password)
  @password = password
end

.usernameObject

:nodoc:



16
17
18
# File 'lib/dnsapp/credentials.rb', line 16

def username #:nodoc:
  @username
end

.username=(username) ⇒ Object

Set DNSApp username. This must be done before connecting.

Example

DNSApp::Credentials.username = '[email protected]'
DNSApp::Credentials.password = 'p@ssw0rd'
DNSApp::Domain.all


12
13
14
# File 'lib/dnsapp/credentials.rb', line 12

def username=(username)
  @username = username
end