Class: ZZSharedLib::DeployGroupSimpleDB
- Inherits:
-
RightAws::ActiveSdb::Base
- Object
- RightAws::ActiveSdb::Base
- ZZSharedLib::DeployGroupSimpleDB
- Defined in:
- lib/zzsharedlib/deploy_group_simple_db.rb
Class Method Summary collapse
Instance Method Summary collapse
- #config ⇒ Object
- #config=(object) ⇒ Object
-
#save ⇒ Object
use strings for time.
Class Method Details
.object_type ⇒ Object
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
#config ⇒ Object
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 |
#save ⇒ Object
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 |