Sha256: 55ef6cdbdaef6ed3873530a9c5f98f353b761d7f0de9c8b8c576b9d5f4e77e57

Contents?: true

Size: 211 Bytes

Versions: 7

Compression:

Stored size: 211 Bytes

Contents

module DiscoApp
  class ShopSerializer

    include FastJsonapi::ObjectSerializer

    attributes :id, :name, :shopify_url

    attribute :time_zone do |shop|
      shop.time_zone.tzinfo.name
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.0 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.2 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.3 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.6 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.4 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb
disco_app-0.18.1 lib/generators/disco_app/react/templates/app/serializers/disco_app/shop_serializer.rb