Method: Megam::Predef#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/megam/core/predef.rb', line 103

def to_hash
  index_hash = Hash.new
  index_hash["json_claz"] = self.class.name
  index_hash["id"] = id
  index_hash["name"] = name
  index_hash["provider"] = provider
  index_hash["provider_role"] = provider_role
  index_hash["build_monkey"] = build_monkey
  index_hash["runtime_exec"] = runtime_exec
  index_hash["created_at"] = created_at
  index_hash
end