Class: Octo::Enterprise
- Inherits:
-
Object
- Object
- Octo::Enterprise
- Includes:
- MongoMapper::Document
- Defined in:
- lib/octocore-mongo/models/enterprise.rb
Constant Summary collapse
- TTL =
Set ttl of 120 minutes for the caches
120
Constants included from MongoMapper::Document
MongoMapper::Document::DUMP_ATTRS
Instance Method Summary collapse
-
#_setup ⇒ Object
Setup the new enterprise.
-
#fakedata? ⇒ Boolean
Method to check if it is okay to create fakedata for this client.
Methods included from MongoMapper::Document
#marshal_dump, #marshal_load, redis, update_cache_config
Instance Method Details
#_setup ⇒ Object
Setup the new enterprise
21 22 23 24 |
# File 'lib/octocore-mongo/models/enterprise.rb', line 21 def _setup setup_notification_categories setup_intelligent_segments end |
#fakedata? ⇒ Boolean
Method to check if it is okay to create fakedata for this
client
29 30 31 |
# File 'lib/octocore-mongo/models/enterprise.rb', line 29 def fakedata? self.name.start_with?('Octo') end |