Class: DNSApp::Credentials
- Inherits:
-
Object
- Object
- DNSApp::Credentials
- Defined in:
- lib/dnsapp/credentials.rb
Class Method Summary collapse
-
.password ⇒ Object
:nodoc:.
-
.password=(password) ⇒ Object
Set DNSApp password.
-
.username ⇒ Object
:nodoc:.
-
.username=(username) ⇒ Object
Set DNSApp username.
Class Method Details
.password ⇒ Object
: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 |
.username ⇒ Object
: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 |