Sha256: be4db0aa74094105a58932df56af8fa925b52119eebb0ae8c2c2ece6d77c8d2b

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

module Shipit
  class HookSerializer < ActiveModel::Serializer
    include ConditionalAttributes

    has_one :stack
    attributes :id, :url, :content_type, :events, :insecure_ssl, :created_at, :updated_at

    def include_stack?
      object.scoped?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shipit-engine-0.6.4 app/serializers/shipit/hook_serializer.rb
shipit-engine-0.6.3 app/serializers/shipit/hook_serializer.rb
shipit-engine-0.6.2 app/serializers/shipit/hook_serializer.rb
shipit-engine-0.6.1 app/serializers/shipit/hook_serializer.rb
shipit-engine-0.6.0 app/serializers/shipit/hook_serializer.rb