Module: Beeta::Model::Mixin

Included in:
App, User
Defined in:
lib/beeta/model.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



6
7
8
9
10
# File 'lib/beeta/model.rb', line 6

def to_json
	h = {}
	self.class::PublicProperties.each { |p| h[p] = send(p) }
	h.to_json
end