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