Method: Megam::Backups#to_hash

Defined in:
lib/megam/core/backups.rb

#to_hashObject

Transform the ruby obj -> to a Hash



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/megam/core/backups.rb', line 133

def to_hash
    index_hash = Hash.new
    index_hash["json_claz"] = self.class.name
    index_hash["id"] = id
    index_hash["account_id"] = 
    index_hash["asm_id"] = asm_id
    index_hash["org_id"] = org_id
    index_hash["labels"] = labels
    index_hash["tosca_type"] = tosca_type
    index_hash["inputs"] = inputs
    index_hash["outputs"] = outputs
    index_hash["name"] = name
    index_hash["status"] = status
    index_hash["image_id"] = image_id
    index_hash["created_at"] = created_at
    index_hash["some_msg"] = some_msg
    index_hash
end