Class: Dreamcatch::Config
- Inherits:
-
Object
- Object
- Dreamcatch::Config
- Defined in:
- lib/dreamcatch/config.rb
Class Attribute Summary collapse
-
.password ⇒ Object
Returns the value of attribute password.
-
.remote_url ⇒ Object
Returns the value of attribute remote_url.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Class Attribute Details
.password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/dreamcatch/config.rb', line 6 def password @password end |
.remote_url ⇒ Object
Returns the value of attribute remote_url.
4 5 6 |
# File 'lib/dreamcatch/config.rb', line 4 def remote_url @remote_url end |
.username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/dreamcatch/config.rb', line 5 def username @username end |
Class Method Details
.credentials ⇒ Object
12 13 14 |
# File 'lib/dreamcatch/config.rb', line 12 def credentials Base64.encode64("#{@username}:#{@password}").gsub(/\n+/, "") end |