summaryrefslogtreecommitdiff
path: root/app/controllers/serializers/company_serializer.rb
blob: d211e9e6b3c81828a47c1c24243f998c4b8ed297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Serializers
  # CompanySerializer
  class CompanySerializer < BaseSerializer
    extend ActionView::RoutingUrlFor

    attributes :id, :name, :country, :short_name

    attribute :logo do |object|
      object.logo.url
    end
  end
end