cirandas.net

ref: master

plugins/suppliers/serializers/suppliers_plugin/profile_serializer.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
module SuppliersPlugin
  class ProfileSerializer < ApplicationSerializer

    attribute :id
    attribute :name
    attribute :contact_phone
    attribute :cell_phone
    attribute :email
    attribute :address
    attribute :city
    attribute :state
    attribute :zip_code
    attribute :profile_icon_thumb
    attribute :identifier

    def profile_icon_thumb
      scope.profile_icon(object, :thumb)
    end

  end
end