mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
16 lines
209 B
Ruby
16 lines
209 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Users::ExportData::Areas
|
||
|
|
def initialize(user)
|
||
|
|
@user = user
|
||
|
|
end
|
||
|
|
|
||
|
|
def call
|
||
|
|
user.areas.as_json(except: %w[user_id id])
|
||
|
|
end
|
||
|
|
|
||
|
|
private
|
||
|
|
|
||
|
|
attr_reader :user
|
||
|
|
end
|