Class: Account
- Inherits:
-
Object
- Object
- Account
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/models/account.rb
Overview
Main Account object, should hold references to everything else.
Instance Method Summary collapse
-
#api_enabled? ⇒ Boolean
Is the API supported for this account?.
Instance Method Details
#api_enabled? ⇒ Boolean
Is the API supported for this account?
34 35 36 37 38 |
# File 'lib/models/account.rb', line 34 def api_enabled? !%w[Terminated Rejected].include?(stage) rescue StandardError true end |