Sha256: 6890a2aebc9f75f84757534b2837d0736a465152354d1d8267ed6c3b8a86347e

Contents?: true

Size: 140 Bytes

Versions: 5

Compression:

Stored size: 140 Bytes

Contents

# Serializer for Cities
class CitySerializer < ActiveModel::Serializer
  attributes :id, :name

  def name
    object.with_region
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geopolitical-3.0.0 app/serializers/city_serializer.rb
geopolitical-2.0.0 app/serializers/city_serializer.rb
geopolitical-1.0.5 app/serializers/city_serializer.rb
geopolitical-1.0.3 app/serializers/city_serializer.rb
geopolitical-1.0.2 app/serializers/city_serializer.rb