Method: Megam::Components#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/megam/core/components.rb', line 195

def to_hash
  index_hash = {}
  index_hash['json_claz'] = self.class.name
  index_hash['id'] = id
  index_hash['name'] = name
  index_hash['tosca_type'] = tosca_type
  index_hash['inputs'] = inputs
  index_hash['outputs'] = outputs
  index_hash['artifacts'] = artifacts
  index_hash['related_components'] = related_components
  index_hash['operations'] = operations
  index_hash['status'] = status
  index_hash['repo'] = repo
  index_hash['created_at'] = created_at
  index_hash
end