Class: RSimpy::User
- Inherits:
-
Object
- Object
- RSimpy::User
- Defined in:
- lib/user.rb
Overview
Instance Method Summary collapse
- #credentials ⇒ Object
-
#initialize(login, pass) ⇒ User
constructor
A new instance of User.
- #valid? ⇒ Boolean
Constructor Details
#initialize(login, pass) ⇒ User
Returns a new instance of User.
18 19 20 21 |
# File 'lib/user.rb', line 18 def initialize login, pass @login = login @pass = pass end |
Instance Method Details
#credentials ⇒ Object
23 24 25 |
# File 'lib/user.rb', line 23 def credentials [@login, @pass] end |
#valid? ⇒ Boolean
27 28 29 |
# File 'lib/user.rb', line 27 def valid? @login && @pass end |