Class: ZZSharedLib::DeployGroupSimpleDB

Inherits:
RightAws::ActiveSdb::Base
  • Object
show all
Defined in:
lib/zzsharedlib/deploy_group_simple_db.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.object_typeObject



15
16
17
# File 'lib/zzsharedlib/deploy_group_simple_db.rb', line 15

def self.object_type
  @@object_type ||= 'deploy_group_type'.freeze
end

Instance Method Details

#configObject



19
20
21
# File 'lib/zzsharedlib/deploy_group_simple_db.rb', line 19

def config
  @config ||= JSON.parse(self.config_json).recursively_symbolize_keys!
end

#config=(object) ⇒ Object



23
24
25
# File 'lib/zzsharedlib/deploy_group_simple_db.rb', line 23

def config=(object)
  self.config_json = JSON.fast_generate(object)
end

#saveObject

use strings for time



28
29
30
31
# File 'lib/zzsharedlib/deploy_group_simple_db.rb', line 28

def save
  self.updated_at = Time.now.strftime('%Y-%m-%dT%H:%M:%S%z')
  super
end