Sha256: 5782d28b6d5a8602074278f2f68b2a0eb3c92092306f73d5d9a1a85c75881774

Contents?: true

Size: 187 Bytes

Versions: 1

Compression:

Stored size: 187 Bytes

Contents

# frozen_string_literal: true

module ArticleRepresenter
  include Roar::JSON
  include Roar::Hypermedia

  property :title
  property :id

  link :self do
    "/article/#{id}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-roar-0.4.1 spec/support/all/article_representer.rb