Sha256: 402a594ea1968bd7698034c749edd3e053a3c06bd4ab5edb56a0def021316fb0

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

# encoding: utf-8
class MagicAddresses::AddressSerializer < ActiveModel::Serializer

  ## defaults
  attributes :id, :created_at, :updated_at

  ## Address - Attributes
  attributes :name, :street, :street_additional, :number, :postalcode, :city, :district, :subdistrict, :state, :country

  ## Location
  attributes :latitude, :longitude
  
  ## Owner
  attributes :owners
  
  
  def owners
    object.owners
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
magic_addresses-0.0.44 lib/app/serializers/magic_addresses/address_serializer.rb
magic_addresses-0.0.43 lib/app/serializers/magic_addresses/address_serializer.rb
magic_addresses-0.0.42 lib/app/serializers/magic_addresses/address_serializer.rb
magic_addresses-0.0.41 lib/app/serializers/magic_addresses/address_serializer.rb
magic_addresses-0.0.40 lib/app/serializers/magic_addresses/address_serializer.rb
magic_addresses-0.0.39 lib/app/serializers/magic_addresses/address_serializer.rb