Class: Application::Config
- Inherits:
-
Object
- Object
- Application::Config
- Defined in:
- lib/makegit/config.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #login ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/makegit/config.rb', line 5 def initialize() @user = git_user @token = git_token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/makegit/config.rb', line 3 def token @token end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
3 4 5 |
# File 'lib/makegit/config.rb', line 3 def user @user end |
Instance Method Details
#login ⇒ Object
10 11 12 |
# File 'lib/makegit/config.rb', line 10 def login [user, token] end |