cartodb/app/controllers/carto/api/invitation_presenter.rb
2020-06-15 10:58:47 +08: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