Class: Hubba::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hubba/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/hubba/github.rb', line 7

def password
  @password
end

#userObject

Returns the value of attribute user.



6
7
8
# File 'lib/hubba/github.rb', line 6

def user
  @user
end