Class: Octo::Enterprise

Inherits:
Object
  • Object
show all
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

Cequel::Record::DUMP_ATTRS

Instance Method Summary collapse

Methods included from Cequel::Record

#marshal_dump, #marshal_load, redis, update_cache_config

Instance Method Details

#_setupObject

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

Returns:

  • (Boolean)


30
31
32
# File 'lib/octocore-cassandra/models/enterprise.rb', line 30

def fakedata?
  self.name.start_with?('Octo')
end