Method: Megam::SshKey#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



88
89
90
91
92
93
94
95
96
97
# File 'lib/megam/core/sshkey.rb', line 88

def to_hash
  index_hash = Hash.new
  index_hash["json_claz"] = self.class.name
  index_hash["id"] = id
  index_hash["name"] = name
  index_hash["accounts_id"] = accounts_id
  index_hash["path"] = path     
  index_hash["created_at"] = created_at
  index_hash
end