Sha256: 459b5f2853c5991896aff8f39dffe6269b373e8a83c8dca59fc51909d00ad916

Contents?: true

Size: 185 Bytes

Versions: 2

Compression:

Stored size: 185 Bytes

Contents

class UserRepresenter < Grape::Roar::Decorator
  include Roar::JSON
  include Roar::Hypermedia

  property :name
  property :id

  link :self do
    "/user/#{represented.id}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-roar-0.4.0 spec/support/user_representer.rb
grape-roar-0.3.0 spec/support/user_representer.rb