Method: Megam::Organizations#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



74
75
76
77
78
79
80
81
82
83
# File 'lib/megam/core/organizations.rb', line 74

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["related_orgs"] = related_orgs
  index_hash["created_at"] = created_at
  index_hash
end