Class: Hubba::Configuration
- Inherits:
-
Object
- Object
- Hubba::Configuration
- Defined in:
- lib/hubba/github.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/hubba/github.rb', line 9 def initialize # try default setup via ENV variables @user = ENV[ 'HUBBA_USER' ] ## use HUBBA_LOGIN - why? why not? @password = ENV[ 'HUBBA_PASSWORD' ] end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/hubba/github.rb', line 7 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
6 7 8 |
# File 'lib/hubba/github.rb', line 6 def user @user end |