Sha256: a132b59fe90057e1428a0f0c33572f74e2df83e62a3bb6c0b4d302b854b8f095
Contents?: true
Size: 680 Bytes
Versions: 35
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module LinkedRails class EntryPointSerializer < LinkedRails.serializer_parent_class include LinkedRails::Serializer attribute :label, predicate: Vocab.schema.name attribute :description, predicate: Vocab.schema.text attribute :target_url, predicate: Vocab.schema.url attribute :http_method, key: :method, predicate: Vocab.schema.httpMethod do |object| object.http_method.upcase end has_one :parent, predicate: Vocab.schema.isPartOf attribute :action_body, predicate: Vocab.ll[:actionBody] attribute :image, predicate: Vocab.schema.image do |object| serialize_image(object.image) end end end
Version data entries
35 entries across 35 versions & 1 rubygems