Sha256: 884818acdc108a7d3ce201cde4ce75e807daa9d7845577411e393655c05fc3df
Contents?: true
Size: 1.24 KB
Versions: 19
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true module Decidim module Meetings class DataPortabilityInviteSerializer < Decidim::Exporters::Serializer # Serializes an invite for data portability def serialize { id: resource.id, sent_at: resource.sent_at, accepted_at: resource.accepted_at, rejected_at: resource.rejected_at, user: { name: resource.user.name, email: resource.user.email }, meeting: { title: resource.meeting.title, description: resource.meeting.description, start_time: resource.meeting.start_time, end_time: resource.meeting.end_time, address: resource.meeting.address, location: resource.meeting.location, location_hints: resource.meeting.location_hints, reference: resource.meeting.reference, attendees_count: resource.meeting.attendees_count, attending_organizations: resource.meeting.attending_organizations, closed_at: resource.meeting.closed_at, closing_report: resource.meeting.closing_report, published_at: resource.meeting.published_at } } end end end end
Version data entries
19 entries across 19 versions & 1 rubygems