Class: AlphaCard::Account
- Inherits:
-
AlphaCardObject
- Object
- AlphaCardObject
- AlphaCard::Account
- Defined in:
- lib/alpha_card/account.rb
Instance Method Summary collapse
- #filled? ⇒ Boolean
-
#initialize(username, password) ⇒ Account
constructor
A new instance of Account.
Methods inherited from AlphaCardObject
Constructor Details
#initialize(username, password) ⇒ Account
Returns a new instance of Account.
6 7 8 9 |
# File 'lib/alpha_card/account.rb', line 6 def initialize(username, password) self.username = username self.password = password end |
Instance Method Details
#filled? ⇒ Boolean
11 12 13 |
# File 'lib/alpha_card/account.rb', line 11 def filled? [self.username, self.password].all?(&:present?) end |