summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-05-24 16:48:02 +0200
committerPeter Kozak <spag@golwen.net>2013-05-24 16:48:02 +0200
commit644a0cff1a3c91ed6c9c39b816fa6edfdf09c0cf (patch)
tree03b40b609dd590000e5ceafb9441579cc0eeac81 /app
parentd323e95480e675c01c1c5c9fdfb25083c448de7f (diff)
calls serializer added
Diffstat (limited to 'app')
-rw-r--r--app/serializers/call_serializer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/call_serializer.rb b/app/serializers/call_serializer.rb
new file mode 100644
index 0000000..cd41969
--- /dev/null
+++ b/app/serializers/call_serializer.rb
@@ -0,0 +1,6 @@
+class CallSerializer < ActiveModel::Serializer
+ embed :uuids, :include => true
+
+ attributes :start_stamp, :destination, :callstate, :b_callstate, :b_caller_id_number, :sip_account_id
+ attribute :uuid, :key => :id
+end \ No newline at end of file