cartodb-4.42/app/controllers/carto/api/invitation_presenter.rb
2024-04-06 05:25:13 +00:00

23 lines
460 B
Ruby

module Carto
module Api
class InvitationPresenter
def initialize(invitation)
@invitation = invitation
end
def to_poro
{
id: @invitation.id,
users_emails: @invitation.users_emails,
welcome_text: @invitation.welcome_text,
viewer: @invitation.viewer,
created_at: @invitation.created_at,
updated_at: @invitation.updated_at
}
end
end
end
end