Class: Gettc::Account
- Inherits:
-
Object
- Object
- Gettc::Account
- Defined in:
- lib/gettc/account.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ Account
constructor
A new instance of Account.
- #to_s ⇒ Object
Constructor Details
#initialize(username, password) ⇒ Account
Returns a new instance of Account.
5 6 7 8 |
# File 'lib/gettc/account.rb', line 5 def initialize(username, password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/gettc/account.rb', line 3 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/gettc/account.rb', line 3 def username @username end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/gettc/account.rb', line 10 def to_s "#{@username}|#{@password}" end |