Class: Gettc::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/gettc/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/gettc/account.rb', line 3

def password
  @password
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/gettc/account.rb', line 3

def username
  @username
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/gettc/account.rb', line 10

def to_s
  "#{@username}|#{@password}"
end