194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
# File 'lib/megam/core/assembly.rb', line 194
def from_hash(o)
@id = o["id"] if o.has_key?("id")
@name = o["name"] if o.has_key?("name")
@tosca_type = o["tosca_type"] if o.has_key?("tosca_type")
@components = o["components"] if o.has_key?("components")
@requirements = o["requirements"] if o.has_key?("requirements")
@policies = o["policies"] if o.has_key?("policies")
@inputs = o["inputs"] if o.has_key?("inputs")
@operations = o["operations"] if o.has_key?("operations")
@outputs = o["outputs"] if o.has_key?("outputs")
@status = o["status"] if o.has_key?("status")
@created_at = o["created_at"] if o.has_key?("created_at")
self
end
|