1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/views/api/prepaid_packs/_pack.json.jbuilder
2021-06-21 17:39:48 +02:00

6 lines
232 B
Ruby

# frozen_string_literal: true
json.extract! pack, :id, :priceable_id, :priceable_type, :group_id, :validity_interval, :validity_count, :minutes
json.amount pack.amount / 100.0
json.usages pack.statistic_profile_prepaid_packs.count