Class: ForestLiana::IntercomController
Instance Method Summary
collapse
#authenticate_user_from_jwt, #current_user, #serialize_model, #serialize_models
Instance Method Details
#attributes ⇒ Object
10
11
12
13
14
15
|
# File 'app/controllers/forest_liana/intercom_controller.rb', line 10
def attributes
getter = IntercomAttributesGetter.new(params)
getter.perform
render json: serialize_model(getter.records)
end
|
#user_conversations ⇒ Object
3
4
5
6
7
8
|
# File 'app/controllers/forest_liana/intercom_controller.rb', line 3
def user_conversations
getter = IntercomConversationsGetter.new(params)
getter.perform
render json: serialize_models(getter.records, { count: getter.count })
end
|