Sha256: 41e8aa645d465505853b2dd3b523e4e1b43843641cba358fe5db8dd43f8e31a4
Contents?: true
Size: 489 Bytes
Versions: 39
Compression:
Stored size: 489 Bytes
Contents
# encoding: utf-8 class MagicAddresses::AddressSerializer < ActiveModel::Serializer ## defaults attributes :id, :created_at, :updated_at ## Address - Attributes attributes :name, :default, :street, :street_additional, :number, :postalcode, :city, :district, :subdistrict, :state, :country ## Location attributes :latitude, :longitude ## Owner attributes :owner_type, :owner_id, :owner def owner { id: object.owner_id, type: object.owner_type } end end
Version data entries
39 entries across 39 versions & 1 rubygems