172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
# File 'lib/megam/core/assembly.rb', line 172
def self.json_create(o)
asm = new
asm.id(o["id"]) if o.has_key?("id")
asm.name(o["name"]) if o.has_key?("name")
asm.tosca_type(o["tosca_type"]) if o.has_key?("tosca_type")
asm.components(o["components"]) if o.has_key?("components")
asm.requirements(o["requirements"]) if o.has_key?("requirements")
asm.policies(o["policies"]) if o.has_key?("policies") asm.inputs(o["inputs"]) if o.has_key?("inputs")
asm.operations(o["operations"]) if o.has_key?("operations")
asm.outputs(o["outputs"]) if o.has_key?("outputs")
asm.status(o["status"]) if o.has_key?("status")
asm.created_at(o["created_at"]) if o.has_key?("created_at")
asm
end
|