Class: AlphaCard::Account

Inherits:
AlphaCardObject show all
Defined in:
lib/alpha_card/account.rb

Instance Method Summary collapse

Methods inherited from AlphaCardObject

#filled_attributes

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/alpha_card/account.rb', line 11

def filled?
  [self.username, self.password].all?(&:present?)
end