summaryrefslogtreecommitdiff
path: root/app/controllers/serializers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-27 20:41:55 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-27 20:41:55 -0600
commitefc5eb10894fc95487c55628b94024e97cd60139 (patch)
tree2e18f71385ce9cc62514ed39b9fbf6420e3ca198 /app/controllers/serializers
parent35ec25dcb3d57b17a3dc174503b7d20dd4c46e43 (diff)
Añade CardsController
Diffstat (limited to 'app/controllers/serializers')
-rw-r--r--app/controllers/serializers/card_serializer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/serializers/card_serializer.rb b/app/controllers/serializers/card_serializer.rb
new file mode 100644
index 0000000..ba97443
--- /dev/null
+++ b/app/controllers/serializers/card_serializer.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+module Serializers
+ # CardSerializer
+ class CardSerializer < BaseSerializer
+ attributes :id, :number, :expiration_year, :expiration_month, :expiration_day, :security_code
+ end
+end