Method: Megam::CloudInstruction#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



58
59
60
61
62
63
64
65
# File 'lib/megam/core/cloudinstruction.rb', line 58

def to_hash
  index_hash = Hash.new
  index_hash["json_claz"] = self.class.name
  index_hash["action"] = action
  index_hash["command"] = command
  index_hash["name"] = name
  index_hash
end